mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
sync of options
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
"use strict";
|
||||
|
||||
const sql = require('./sql');
|
||||
const options = require('./options');
|
||||
const scrypt = require('scrypt');
|
||||
|
||||
async function getVerificationHash(password) {
|
||||
const salt = await sql.getOption('password_verification_salt');
|
||||
const salt = await options.getOption('password_verification_salt');
|
||||
|
||||
return getScryptHash(password, salt);
|
||||
}
|
||||
|
||||
async function getPasswordDerivedKey(password) {
|
||||
const salt = await sql.getOption('password_derived_key_salt');
|
||||
const salt = await options.getOption('password_derived_key_salt');
|
||||
|
||||
return getScryptHash(password, salt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user