mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #10519 from lekoala/patch-30
request may not have a session
This commit is contained in:
commit
b36c987eef
@ -47,7 +47,7 @@ class MemberAuthenticator implements Authenticator
|
|||||||
// Optionally record every login attempt as a {@link LoginAttempt} object
|
// Optionally record every login attempt as a {@link LoginAttempt} object
|
||||||
$this->recordLoginAttempt($data, $request, $member, $result->isValid());
|
$this->recordLoginAttempt($data, $request, $member, $result->isValid());
|
||||||
|
|
||||||
if ($member) {
|
if ($member && $request->hasSession()) {
|
||||||
$request->getSession()->clear('BackURL');
|
$request->getSession()->clear('BackURL');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user