We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b855ad2 commit 34ef46eCopy full SHA for 34ef46e
server/src/auth/auth.service.ts
@@ -25,7 +25,7 @@ export class AuthService {
25
const match = await bcrypt.compare(password, user?.hashedPassword);
26
27
if (!match) {
28
- throw new UnauthorizedException("Password or email doesn't match");
+ throw new UnauthorizedException('Password or email does not match');
29
}
30
31
user.lastLogin = new Date();
server/src/users/users.service.ts
@@ -67,7 +67,6 @@ export class UsersService {
67
68
async create(createUserDto: CreateUserDto): Promise<User> {
69
const now = new Date();
70
-
71
const createdUser = new this.model({
72
...createUserDto,
73
lastLogin: now,
0 commit comments