diff --git a/backend/src/auth/auth.service.ts b/backend/src/auth/auth.service.ts index 1efef082..aa4ab031 100644 --- a/backend/src/auth/auth.service.ts +++ b/backend/src/auth/auth.service.ts @@ -76,7 +76,7 @@ export class AuthService { }, }); - if (user && await argon.verify(user.password, dto.password)) { + if (user?.password && await argon.verify(user.password, dto.password)) { this.logger.log(`Successful password login for user ${user.email} from IP ${ip}`); return this.generateToken(user); }