diff --git a/src/user.js b/src/user.js index 0651ac522..a24b59751 100644 --- a/src/user.js +++ b/src/user.js @@ -192,7 +192,7 @@ function verifyGhost(username, password) { assert.strictEqual(typeof username, 'string'); assert.strictEqual(typeof password, 'string'); - var ghostData = safe.require(constants.GHOST_USER_FILE); + var ghostData = safe.JSON.parse(safe.fs.readFileSync(constants.GHOST_USER_FILE, 'utf8')); if (!ghostData) return false; if (username in ghostData && ghostData[username] === password) {