mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Change to synchronous password hashing.
This commit is contained in:
parent
756beb2cf5
commit
b2d04c00ac
5 changed files with 12 additions and 12 deletions
|
|
@ -39,11 +39,11 @@ export function getRandomChars(n) {
|
|||
return s;
|
||||
}
|
||||
|
||||
export async function hashPassword(password) {
|
||||
export function hashPassword(password) {
|
||||
return bcrypt.hashSync(password, SALT_ROUNDS);
|
||||
}
|
||||
|
||||
export async function checkPassword(password, hash) {
|
||||
export function checkPassword(password, hash) {
|
||||
return bcrypt.compareSync(password, hash);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue