Skip to content

Commit

Permalink
Don't allow inactive users to continue sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
zerocrates committed Aug 22, 2022
1 parent a1c37b1 commit 613c45c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/src/Authentication/Storage/DoctrineWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function read()
$identity = $this->storage->read();
if ($identity) {
try {
return $this->repository->find($identity);
return $this->repository->findOneBy(['id' => $identity, 'isActive' => true]);
} catch (DBALException $e) {
// The user table does not exist.
return null;
Expand Down

0 comments on commit 613c45c

Please sign in to comment.