mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Passed controller argument to ChangedPasswordForm constructor
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60586 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
788ec0e536
commit
00677d8cb7
@ -99,7 +99,7 @@ class MemberLoginForm extends LoginForm {
|
||||
Session::set('BackURL', $backURL);
|
||||
}
|
||||
|
||||
$cp = new ChangePasswordForm(null, 'ChangePasswordForm');
|
||||
$cp = new ChangePasswordForm($this->controller, 'ChangePasswordForm');
|
||||
$cp->sessionMessage('Your password has expired. Please choose a new one.', 'good');
|
||||
|
||||
Director::redirect('Security/changepassword');
|
||||
|
Loading…
x
Reference in New Issue
Block a user