bcryptjs
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -24,12 +24,8 @@ 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,
|
||||
@@ -52,10 +48,6 @@ export class AuthService {
|
||||
}
|
||||
|
||||
const contraseñaValida = await bcrypt.compare(
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
usuario.contraseña,
|
||||
>>>>>>> 3317b7bdbe91d04618f00c28caeca76c35803f9c
|
||||
contraseña,
|
||||
usuario.contraseña,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user