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:
Ingo Schommer 2007-09-14 16:57:12 +00:00
parent daca02b9a7
commit aadac616c0

View File

@ -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();
}
}