Minor bug fix
This commit is contained in:
parent
016b125f49
commit
6245dc84da
|
@ -9,7 +9,7 @@ try {
|
||||||
SALT = require(SALT_PATH);
|
SALT = require(SALT_PATH);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
SALT = crypto.randomBytes(32).toString('base64');
|
SALT = crypto.randomBytes(32).toString('base64');
|
||||||
fs.writeFileSync(SALT_PATH, SALT);
|
fs.writeFileSync(SALT_PATH, JSON.stringify(SALT));
|
||||||
}
|
}
|
||||||
|
|
||||||
function sha256(input) {
|
function sha256(input) {
|
||||||
|
|
Loading…
Reference in a new issue