Skip to content

Commit a665880

Browse files
authored
Merge pull request #1092 from foerster-finsternis/master
Fix logout condition based on last error reason
2 parents e17f41b + 8a06fe3 commit a665880

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Controller/SAMLController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ public function singleLogoutService(): Http\RedirectResponse {
501501
$this->userSession->logout();
502502
}
503503
}
504-
if ($targetUrl !== '' && $targetUrl !== null && $auth && $auth->getLastErrorReason() !== null) {
504+
if ($targetUrl !== '' && $targetUrl !== null && $auth && $auth->getLastErrorReason() === null) {
505505
$this->userSession->logout();
506506
}
507507
}

0 commit comments

Comments
 (0)