mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
#1457 - Redirection after login doesn't behave correctly if login fails
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.1.1@43599 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
99b3728e6d
commit
b9492c67c5
@ -50,9 +50,13 @@ class LoginForm extends Form {
|
||||
if(isset($_REQUEST['BackURL']) && $backURL = $_REQUEST['BackURL']) {
|
||||
Session::clear("BackURL");
|
||||
Director::redirect($backURL);
|
||||
}else
|
||||
Director::redirectBack();
|
||||
} else {
|
||||
Director::redirectBack();
|
||||
}
|
||||
} else {
|
||||
if(isset($_REQUEST['BackURL']) && $backURL = $_REQUEST['BackURL']) {
|
||||
Session::set('BackURL', $backURL);
|
||||
}
|
||||
|
||||
if($badLoginURL = Session::get("BadLoginURL")) {
|
||||
Director::redirect($badLoginURL);
|
||||
|
Loading…
Reference in New Issue
Block a user