From 84ab4410f509c02f6f85292d7a7354da05f7fdd9 Mon Sep 17 00:00:00 2001 From: HardiReady Date: Sun, 11 Mar 2018 09:50:15 +0100 Subject: [PATCH] extend token expiration time to 28 days --- api/routes/authenticate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/routes/authenticate.js b/api/routes/authenticate.js index c2d59e7..ef0c2a1 100644 --- a/api/routes/authenticate.js +++ b/api/routes/authenticate.js @@ -47,7 +47,7 @@ let authCheck = (username, password, res) => { AppUserModel.findOne({username: username.toLowerCase()}).populate('squad').exec((err, user) => { if (err) deferred.reject(err.name + ': ' + err.message); - const diff = 7 * 60 * 24; // time till expiration [minutes] + const diff = 28 * 60 * 24; // time till expiration [minutes] if (user && !user.activated) { res.status(codes.unauthorized).send('Account is not yet activated');