refactor(all): refactoring to remove monorepo taking to long to get it wokring as intended

This commit is contained in:
2025-02-19 10:06:43 -06:00
parent 5f7a3dd182
commit b15f1d8ae8
28 changed files with 736 additions and 112 deletions

View File

@@ -0,0 +1,17 @@
import bcrypt from "bcrypt";
export const passwordUpdate = (password: string) => {
// encypt password
let pass: string = process.env.SECRET;
let salt: string = process.env.SALTING;
if (!pass || !salt) {
pass = "error";
} else {
pass = bcrypt.hashSync(process.env.SECRET + password, parseInt(process.env.SALTING));
pass = btoa(pass);
}
return pass;
};