mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-06 01:31:22 +02:00
Merge pull request #3433 from chillu/pulls/authenticate-backurl-master
Don't clear BackURL after MemberAuthenticator::authenticate()
This commit is contained in:
commit
89245ef443
@ -115,10 +115,8 @@ class MemberAuthenticator extends Authenticator {
|
|||||||
$member->write();
|
$member->write();
|
||||||
}
|
}
|
||||||
|
|
||||||
if($member) {
|
if(!$member && $form && $result) {
|
||||||
Session::clear('BackURL');
|
$form->sessionMessage($result->message(), 'bad');
|
||||||
} else {
|
|
||||||
if($form && $result) $form->sessionMessage($result->message(), 'bad');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $member;
|
return $member;
|
||||||
|
Loading…
Reference in New Issue
Block a user