From b6c9029c827b37e66d6848611164746219152460 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 21 Nov 2016 15:14:32 +0100 Subject: [PATCH] Use proper return function Signed-off-by: Lukas Reschke --- core/js/js.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/js/js.js b/core/js/js.js index 64c7dda31e2..41041a42885 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1524,8 +1524,7 @@ OC.PasswordConfirmation = { }, requiresPasswordConfirmation: function() { - var timeSinceLogin = moment.now() - nc_lastLogin * 1000; - return timeSinceLogin > 10 * 1000; // 30 minutes + var timeSinceLogin = moment.now() - (nc_lastLogin * 1000); return timeSinceLogin > 30 * 60 * 1000; // 30 minutes },