From 9c7298ddc6c079526ee2f502e0e4cbd3e5301f29 Mon Sep 17 00:00:00 2001 From: Florian Hartwich Date: Sun, 11 Jun 2017 16:54:02 +0200 Subject: [PATCH] Login expiration to 7 days --- api/routes/authenticate.js | 2 +- .../request/confirm-promotion/confirm-promotion.component.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/api/routes/authenticate.js b/api/routes/authenticate.js index 11958cf..f778c08 100644 --- a/api/routes/authenticate.js +++ b/api/routes/authenticate.js @@ -50,7 +50,7 @@ let authCheck = (username, password, res) => { AppUserModel.findOne({username: username}).populate('squad').exec((err, user) => { if (err) deferred.reject(err.name + ': ' + err.message); - const diff = 3 * 60 * 24; // time till expiration [minutes] + const diff = 7 * 60 * 24; // time till expiration [minutes] if (user && !user.activated) { res.status(codes.unauthorized).send('Account is not yet activated'); diff --git a/static/src/app/request/confirm-promotion/confirm-promotion.component.html b/static/src/app/request/confirm-promotion/confirm-promotion.component.html index 78ed8df..a7824c7 100644 --- a/static/src/app/request/confirm-promotion/confirm-promotion.component.html +++ b/static/src/app/request/confirm-promotion/confirm-promotion.component.html @@ -8,7 +8,6 @@
-