Skip to content

Commit ba28ffc

Browse files
committed
fix: les utilisateurs supprimé ne doivent pas se connecter
1 parent 1d1c32c commit ba28ffc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Models/UserModel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ public function findByCredentials(array $credentials): ?User
206206
$this->tables['identities'] . '.secret2 As password_hash',
207207
])
208208
->join($this->tables['identities'], [$this->tables['identities'] . '.user_id' => $this->table . '.id'])
209-
->where($this->tables['identities'] . '.type', Session::ID_TYPE_EMAIL_PASSWORD);
209+
->where($this->tables['identities'] . '.type', Session::ID_TYPE_EMAIL_PASSWORD)
210+
->whereNull($this->table . '.deleted_at');
210211

211212
if (null === $builder = $this->fetchByCredentials($credentials, $builder)) {
212213
return null;

0 commit comments

Comments
 (0)