remove double hashing
This commit is contained in:
parent
72df8e473d
commit
64ec020cc8
@ -111,8 +111,6 @@ export class AuthService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const salt = await bcrypt.genSalt(10);
|
|
||||||
registerDto.password = await bcrypt.hash(registerDto.password, salt);
|
|
||||||
const user = await this.usersService.createUser(registerDto);
|
const user = await this.usersService.createUser(registerDto);
|
||||||
const tokens = await this.generateTokens(user.id, user.email, user.role);
|
const tokens = await this.generateTokens(user.id, user.email, user.role);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user