We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d1c32c commit ba28ffcCopy full SHA for ba28ffc
src/Models/UserModel.php
@@ -206,7 +206,8 @@ public function findByCredentials(array $credentials): ?User
206
$this->tables['identities'] . '.secret2 As password_hash',
207
])
208
->join($this->tables['identities'], [$this->tables['identities'] . '.user_id' => $this->table . '.id'])
209
- ->where($this->tables['identities'] . '.type', Session::ID_TYPE_EMAIL_PASSWORD);
+ ->where($this->tables['identities'] . '.type', Session::ID_TYPE_EMAIL_PASSWORD)
210
+ ->whereNull($this->table . '.deleted_at');
211
212
if (null === $builder = $this->fetchByCredentials($credentials, $builder)) {
213
return null;
0 commit comments