diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-11-21 15:14:32 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-11-21 15:14:32 +0100 |
commit | b6c9029c827b37e66d6848611164746219152460 (patch) | |
tree | 64fdb3075c48386c14b396212e63e7ad1ac067b4 /core/js/js.js | |
parent | efdef8f801bd33b5c2e4d982947a4ff41e2514ab (diff) | |
download | nextcloud-server-b6c9029c827b37e66d6848611164746219152460.tar.gz nextcloud-server-b6c9029c827b37e66d6848611164746219152460.zip |
Use proper return function
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'core/js/js.js')
-rw-r--r-- | core/js/js.js | 3 |
1 files changed, 1 insertions, 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 }, |