mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merged revisions 50532 via svnmerge from
svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.2.0-mesq ........ r50532 | ischommer | 2008-03-04 14:09:45 +1300 (Tue, 04 Mar 2008) | 1 line setting BackURL in GET parameter of /security/login to avoid redirecting to lostpassword form again ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@55069 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
01b34bdd59
commit
64d0d7fd95
@ -86,7 +86,8 @@ class ChangePasswordForm extends Form {
|
||||
_t('Member.PASSWORDCHANGED', "Your password has been changed, and a copy emailed to you."),
|
||||
"good");
|
||||
Session::clear('AutoLoginHash');
|
||||
Director::redirect(Security::Link('login'));
|
||||
$redirectURL = HTTP::setGetVar('BackURL', urlencode(Director::absoluteBaseURL()), Security::Link('login'));
|
||||
Director::redirect($redirectURL);
|
||||
|
||||
} else {
|
||||
$this->clearMessage();
|
||||
|
Loading…
x
Reference in New Issue
Block a user