remove double hashing

This commit is contained in:
sdraris 2025-09-22 12:23:43 +02:00
parent 72df8e473d
commit 64ec020cc8

View File

@ -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);