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