This commit is contained in:
2025-10-30 10:13:17 -06:00
5 changed files with 32 additions and 9 deletions
+8
View File
@@ -24,8 +24,12 @@ export class AuthService {
}
try {
<<<<<<< HEAD
const salt = await bcrypt.genSalt(10);
const hashedContraseña = await bcrypt.hash(contraseña, salt);
=======
const hashedContraseña = await bcrypt.hash(contraseña,10);
>>>>>>> 3317b7bdbe91d04618f00c28caeca76c35803f9c
await this.usuarioService.create({
nombre,
@@ -48,6 +52,10 @@ export class AuthService {
}
const contraseñaValida = await bcrypt.compare(
<<<<<<< HEAD
=======
usuario.contraseña,
>>>>>>> 3317b7bdbe91d04618f00c28caeca76c35803f9c
contraseña,
usuario.contraseña,
);