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); }