diff --git a/security/MemberLoginForm.php b/security/MemberLoginForm.php index 9e6795339..cccdf9089 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 *