summaryrefslogtreecommitdiffstats
path: root/server/lib/authentication.js
diff options
context:
space:
mode:
authorJannik Schönartz2018-11-22 00:09:22 +0100
committerJannik Schönartz2018-11-22 00:09:22 +0100
commit34129c58704e9de1edab2bc50dd72383940ce0e2 (patch)
tree37d2a24663bcd95cb640c2f1c926e3a5d8da3e4c /server/lib/authentication.js
parent[external-backends] Fix: Delete clients in the backend is now working properly. (diff)
downloadbas-34129c58704e9de1edab2bc50dd72383940ce0e2.tar.gz
bas-34129c58704e9de1edab2bc50dd72383940ce0e2.tar.xz
bas-34129c58704e9de1edab2bc50dd72383940ce0e2.zip
eslint fixes :)
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)
})