From 4a0f9d5b7bfd148ead0a813e020357c5b11230e9 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Thu, 3 Oct 2013 17:10:56 +1300 Subject: [PATCH] BUG Issue with login form failing to login in certain situations. Fixes issue #2424 --- security/MemberLoginForm.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/security/MemberLoginForm.php b/security/MemberLoginForm.php index cb584539c..4d2d5c400 100644 --- a/security/MemberLoginForm.php +++ b/security/MemberLoginForm.php @@ -14,6 +14,15 @@ class MemberLoginForm extends LoginForm { protected $authenticator_class = 'MemberAuthenticator'; + /** + * Since the logout and dologin actions may be conditionally removed, it's necessary to ensure these + * remain valid actions regardless of the member login state. + * + * @var array + * @config + */ + private static $allowed_actions = array('dologin', 'logout'); + /** * Constructor *