Skip to content

Commit 8a06fe3

Browse files
Fix logout condition based on last error reason
Referencing #1087 Signed-off-by: Matthias Täschner <27773321+foerster-finsternis@users.noreply.github.com>
1 parent 7d86211 commit 8a06fe3

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)