summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-11-21 15:14:32 +0100
committerLukas Reschke <lukas@statuscode.ch>2016-11-21 15:14:32 +0100
commitb6c9029c827b37e66d6848611164746219152460 (patch)
tree64fdb3075c48386c14b396212e63e7ad1ac067b4 /core/js/js.js
parentefdef8f801bd33b5c2e4d982947a4ff41e2514ab (diff)
downloadnextcloud-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.js3
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
},