summaryrefslogtreecommitdiffstats
path: root/server/lib/authentication.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/authentication.js')
-rw-r--r--server/lib/authentication.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/authentication.js b/server/lib/authentication.js
index a9ee4ef..5623b1e 100644
--- a/server/lib/authentication.js
+++ b/server/lib/authentication.js
@@ -119,7 +119,7 @@ function verifyUser (res, username, password, callback) {
// Verify & improving the hash.
verifyHash(res, userPassword, hash, user.id, function () {
- jwt.sign({user}, config.secret, { expiresIn: '12h' }, (err, token) => {
+ jwt.sign({ user }, config.secret, { expiresIn: '12h' }, (err, token) => {
if (err) return res.status(500).send({ auth: false, status: 'JWT_ERROR', error_message: 'Jwt sign failed.' })
return callback(token)
})