User active column

This commit is contained in:
Marcin Łojewski
2018-06-13 20:01:09 +02:00
parent b00f61193e
commit a312ba8c47
8 changed files with 21 additions and 1 deletions

View File

@@ -278,6 +278,14 @@ final class UserBackend extends Backend
$password, $user->password
);
if ($user->active == false) {
$this->logger->info(
"User account is inactive for user: $uid",
["app" => $this->appName]
);
return false;
}
if ($isCorrect !== true) {
$this->logger->info(
"Invalid password attempt for user: $uid",