diff --git a/src/bcrypt/bcrypt.service.ts b/src/bcrypt/bcrypt.service.ts index 5f6bf9c..317a737 100644 --- a/src/bcrypt/bcrypt.service.ts +++ b/src/bcrypt/bcrypt.service.ts @@ -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; - }; + } }