mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 16:45:35 +01:00
Updated hash method.
This commit is contained in:
parent
ea9da45679
commit
4c01f2fa49
1 changed files with 2 additions and 2 deletions
|
|
@ -14,11 +14,11 @@ export function hash(...args) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function secret() {
|
export function secret() {
|
||||||
return hash(process.env.HASH_SALT);
|
return hash(process.env.DATABASE_URL, process.env.HASH_SALT);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function salt() {
|
export function salt() {
|
||||||
return v5([secret(), ROTATING_SALT].join(''), v5.DNS);
|
return v5(hash(secret(), ROTATING_SALT), v5.DNS);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function uuid(...args) {
|
export function uuid(...args) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue