From c090ec301b7ca6d57392e94926da48ef65530135 Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Thu, 25 Jan 2018 12:31:43 -0500 Subject: [PATCH] fix lint --- src/middleware/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/user.js b/src/middleware/user.js index c61e5144b3..2b29aa5ca1 100644 --- a/src/middleware/user.js +++ b/src/middleware/user.js @@ -177,7 +177,7 @@ module.exports = function (middleware) { var disabled = parseInt(meta.config.adminReloginDuration, 10) === 0; if (disabled || (loginTime && parseInt(loginTime, 10) > Date.now() - adminReloginDuration)) { var timeLeft = parseInt(loginTime, 10) - (Date.now() - adminReloginDuration); - if (req.session.meta && timeLeft < Math.min(300000, adminReloginDuration) ) { + if (req.session.meta && timeLeft < Math.min(300000, adminReloginDuration)) { req.session.meta.datetime += Math.min(300000, adminReloginDuration); }