Commit 07d4e244 authored by Diego Iván's avatar Diego Iván
Browse files

corrigiendo bug al comparar contraseñas encriptadas

parent 93032208
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ import * as bcrypt from 'bcrypt';
export class EncryptionService {
  async hashPassword(password: string): Promise<string> {
    const salt: string = await bcrypt.genSalt(10);
    const hashedPwd: string = await bcrypt.hash('hola', salt);
    const hashedPwd: string = await bcrypt.hash(password, salt);
    return hashedPwd;
  }