mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
mlanthaler: Save the email address in the session variable to reuse it when the login fails. (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41768 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
daca02b9a7
commit
aadac616c0
@ -78,14 +78,16 @@ class MemberLoginForm extends Form {
|
||||
|
||||
if($backURL = $_REQUEST['BackURL']) {
|
||||
Session::clear("BackURL");
|
||||
Session::clear('SessionForms.MemberLoginForm.Email');
|
||||
Director::redirect($backURL);
|
||||
}else
|
||||
} else
|
||||
Director::redirectBack();
|
||||
}else{
|
||||
|
||||
} else {
|
||||
Session::set('SessionForms.MemberLoginForm.Email', $data['Email']);
|
||||
if($badLoginURL = Session::get("BadLoginURL")){
|
||||
Director::redirect($badLoginURL);
|
||||
}else{
|
||||
} else {
|
||||
Director::redirectBack();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user