summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
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
},