Merge pull request #10519 from lekoala/patch-30

request may not have a session
This commit is contained in:
Guy Sartorelli 2022-09-29 09:05:12 +13:00 committed by GitHub
commit b36c987eef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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