modify getAuthenticator to fall back to get_default_authenticator

This commit is contained in:
Andrew Aitken-Fincham 2016-08-03 10:36:43 +12:00
parent c587059674
commit 66f2e6811b

View File

@ -324,10 +324,8 @@ class Security extends Controller implements TemplateGlobalProvider {
if(in_array($authenticator, $authenticators)) {
return $authenticator;
}
} else {
return Authenticator::get_default_authenticator();
}
return Authenticator::get_default_authenticator();
}
/**