mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-16 02:05:04 +01:00
Updated hash method.
This commit is contained in:
parent
ea9da45679
commit
4c01f2fa49
@ -14,11 +14,11 @@ export function hash(...args) {
|
||||
}
|
||||
|
||||
export function secret() {
|
||||
return hash(process.env.HASH_SALT);
|
||||
return hash(process.env.DATABASE_URL, process.env.HASH_SALT);
|
||||
}
|
||||
|
||||
export function salt() {
|
||||
return v5([secret(), ROTATING_SALT].join(''), v5.DNS);
|
||||
return v5(hash(secret(), ROTATING_SALT), v5.DNS);
|
||||
}
|
||||
|
||||
export function uuid(...args) {
|
||||
|
Loading…
Reference in New Issue
Block a user