diff --git a/security/MemberLoginForm.php b/security/MemberLoginForm.php index cccdf9089..c95216b42 100644 --- a/security/MemberLoginForm.php +++ b/security/MemberLoginForm.php @@ -1,6 +1,14 @@ extend('forgotPassword', $member); + if($results && is_array($results) && in_array(false, $results, true)) { + return $this->controller->redirect('Security/lostpassword'); + } + if($member) { $token = $member->generateAutologinTokenAndStoreHash();