From 66f2e6811b8981c8f73359c5e989a05976b4049c Mon Sep 17 00:00:00 2001 From: Andrew Aitken-Fincham Date: Wed, 3 Aug 2016 10:36:43 +1200 Subject: [PATCH] modify getAuthenticator to fall back to get_default_authenticator --- security/Security.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/security/Security.php b/security/Security.php index 9cf65ca55..af77e28c3 100644 --- a/security/Security.php +++ b/security/Security.php @@ -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(); } /**