diff --git a/Backend/src/database/database.service.ts b/Backend/src/database/database.service.ts index 43f2859..68df352 100644 --- a/Backend/src/database/database.service.ts +++ b/Backend/src/database/database.service.ts @@ -37,7 +37,7 @@ export class DatabaseService { name: process.env.CSD_USER, password: bcrypt.hashSync( process.env.CSD_PASSWORD, - parseInt(process.env.BCRYPT_SALT), + process.env.BCRYPT_SALT, ), }); } @@ -52,7 +52,7 @@ export class DatabaseService { $set: { password: bcrypt.hashSync( process.env.CSD_PASSWORD, - parseInt(process.env.BCRYPT_SALT), + process.env.BCRYPT_SALT, ), }, }, diff --git a/Backend/src/login/login.service.ts b/Backend/src/login/login.service.ts index 5976ebe..43d12df 100644 --- a/Backend/src/login/login.service.ts +++ b/Backend/src/login/login.service.ts @@ -17,7 +17,7 @@ export class LoginService { // console.log(bcrypt.hashSync(user.password, process.env.BCRYPT_SALT)); const encryptedUser = { name: user.name, - password: bcrypt.hashSync(user.password, parseInt(process.env.BCRYPT_SALT)), + password: bcrypt.hashSync(user.password, process.env.BCRYPT_SALT), }; // this should not throw an error, then the return is executed