null check
This commit is contained in:
parent
7431804a46
commit
651e5f6153
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ export class AuthService {
|
|||
|
||||
const isPasswordMatch = await comparePasswordHash(
|
||||
loginDto.password,
|
||||
user.password,
|
||||
user?.password,
|
||||
);
|
||||
|
||||
if (!user || !isPasswordMatch || user.deletedAt) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue