Skip to content

Commit d21e99d

Browse files
committed
ISSUE-72: block auth for disabled
1 parent 9a7c7e4 commit d21e99d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Domain/Identity/Service/SessionManager.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public function createSession(string $loginName, string $password): Administrato
2929
throw new UnauthorizedHttpException('', 'Not authorized', null, 1500567098);
3030
}
3131

32+
if ($administrator->isDisabled()) {
33+
throw new UnauthorizedHttpException('', 'Not authorized', null, 1500567099);
34+
}
35+
3236
$token = new AdministratorToken();
3337
$token->setAdministrator($administrator);
3438
$token->generateExpiry();

0 commit comments

Comments
 (0)