mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02: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
|
||||
$this->recordLoginAttempt($data, $request, $member, $result->isValid());
|
||||
|
||||
if ($member) {
|
||||
if ($member && $request->hasSession()) {
|
||||
$request->getSession()->clear('BackURL');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user