mirror of
https://github.com/docmost/docmost.git
synced 2025-11-15 07:51:11 +10:00
null check
This commit is contained in:
@ -49,7 +49,7 @@ export class AuthService {
|
||||
|
||||
const isPasswordMatch = await comparePasswordHash(
|
||||
loginDto.password,
|
||||
user.password,
|
||||
user?.password,
|
||||
);
|
||||
|
||||
if (!user || !isPasswordMatch || user.deletedAt) {
|
||||
|
||||
Reference in New Issue
Block a user