mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #5867 from andrewandante/MINOR_getAuthenticator-returns-default
Modify getAuthenticator to fall back to get_default_authenticator
This commit is contained in:
commit
e683c97f6e
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user