hashage corrected
This commit is contained in:
parent
ce6d713ec7
commit
72df8e473d
@ -111,8 +111,9 @@ 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 tokens = await this.generateTokens(user.id, user.email, user.role);
|
||||
|
||||
return {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user