Cambios en el back de inscripciones
This commit is contained in:
@@ -6,8 +6,22 @@ const comparar = (password, dbPassword) => {
|
||||
return true;
|
||||
};
|
||||
|
||||
const encriptar = (password) =>
|
||||
bcrypt.hashSync(password, Number(process.env.SALT_ROUNDS));
|
||||
const encriptar = (password) => {
|
||||
/*
|
||||
bcrypt.hashSync(password, Number(process.env.SALT_ROUNDS));
|
||||
|
||||
const rounds = Number(process.env.SALT_ROUNDS) || 10;
|
||||
console.log('Rounds para hashSync:', rounds);
|
||||
return bcrypt.hashSync(password, rounds);
|
||||
|
||||
const rounds = Number(process.env.SALT_ROUNDS) || 10;
|
||||
console.log('Rounds para hashSync:', rounds);
|
||||
console.log('Password recibido en encriptar:', password); // <-- agrega esto
|
||||
return bcrypt.hashSync(password, rounds);
|
||||
*/
|
||||
const rounds = Number(process.env.SALT_ROUNDS) || 10;
|
||||
return bcrypt.hashSync(password, rounds);
|
||||
}
|
||||
|
||||
const generarPassword = () => {
|
||||
const length = 8;
|
||||
|
||||
Reference in New Issue
Block a user