Minor bug fix

This commit is contained in:
calzoneman 2016-08-08 23:04:34 -07:00
parent 016b125f49
commit 6245dc84da
1 changed files with 1 additions and 1 deletions

View File

@ -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) {