Enforce systen.register_policy value type

This commit is contained in:
Hypolite Petovan 2018-07-15 15:04:48 -04:00
parent 9b01a23c9b
commit 67dc08d120
14 changed files with 19 additions and 19 deletions

View file

@ -62,7 +62,7 @@ function openid_content(App $a) {
// Successful OpenID login - but we can't match it to an existing account.
// New registration?
if (Config::get('config', 'register_policy') === REGISTER_CLOSED) {
if (intval(Config::get('config', 'register_policy')) === REGISTER_CLOSED) {
notice(L10n::t('Account not found and OpenID registration is not permitted on this site.') . EOL);
goaway(System::baseUrl());
}