bcrypt corregido

This commit is contained in:
2023-01-19 07:17:14 -06:00
parent 04fdd18b38
commit 30bc761f3b
+2 -2
View File
@@ -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;
};
}
}