From 6245dc84da805104fad225deb293db17ffbdc690 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Mon, 8 Aug 2016 23:04:34 -0700 Subject: [PATCH] Minor bug fix --- src/web/middleware/ipsessioncookie.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/middleware/ipsessioncookie.js b/src/web/middleware/ipsessioncookie.js index c2cd849b..e74b1f55 100644 --- a/src/web/middleware/ipsessioncookie.js +++ b/src/web/middleware/ipsessioncookie.js @@ -9,7 +9,7 @@ try { SALT = require(SALT_PATH); } catch (error) { SALT = crypto.randomBytes(32).toString('base64'); - fs.writeFileSync(SALT_PATH, SALT); + fs.writeFileSync(SALT_PATH, JSON.stringify(SALT)); } function sha256(input) {