From 651e5f6153d444ab0d3080e2f619c0ae64bb34ad Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Tue, 8 Apr 2025 11:59:47 +0100 Subject: [PATCH] null check --- apps/server/src/core/auth/services/auth.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/core/auth/services/auth.service.ts b/apps/server/src/core/auth/services/auth.service.ts index bd61adcb..19f02230 100644 --- a/apps/server/src/core/auth/services/auth.service.ts +++ b/apps/server/src/core/auth/services/auth.service.ts @@ -49,7 +49,7 @@ export class AuthService { const isPasswordMatch = await comparePasswordHash( loginDto.password, - user.password, + user?.password, ); if (!user || !isPasswordMatch || user.deletedAt) {