bcrypt corregido
This commit is contained in:
@@ -24,7 +24,7 @@ export class BcryptService {
|
||||
return bcrypt.hashSync(password, this.salt);
|
||||
}
|
||||
|
||||
generarPassword = (): string => {
|
||||
generarPassword(): string {
|
||||
const charset =
|
||||
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-@#$%&=?¿*()/_-';
|
||||
let password = '';
|
||||
@@ -32,5 +32,5 @@ export class BcryptService {
|
||||
for (let i = 0; i < this.passwordLength; i++)
|
||||
password += charset.charAt(Math.floor(Math.random() * charset.length));
|
||||
return password;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user