From: Lukas Reschke Date: Mon, 21 Nov 2016 14:14:32 +0000 (+0100) Subject: Use proper return function X-Git-Tag: v11.0RC2~187^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b6c9029c827b37e66d6848611164746219152460;p=nextcloud-server.git Use proper return function Signed-off-by: Lukas Reschke --- 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 },