transform core api codes into this project, update modules as admin/pos context modules

This commit is contained in:
2026-03-07 11:25:11 +03:30
parent b949500482
commit 8c5f1d4d49
167 changed files with 26975 additions and 1837 deletions
+11
View File
@@ -0,0 +1,11 @@
import * as bcrypt from 'bcrypt'
export class PasswordUtil {
static async hash(password: string, saltRounds = 10): Promise<string> {
return bcrypt.hash(password, saltRounds)
}
static async compare(password: string, hashedPassword: string): Promise<boolean> {
return bcrypt.compare(password, hashedPassword)
}
}