summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-11-21 17:34:46 +0100
committerGitHub <noreply@github.com>2016-11-21 17:34:46 +0100
commit206ef51eac4f65242658733f6899f7fe3fa473b2 (patch)
tree522f85c0b41c7c0fa239b67e6fd5f37820459d57
parentcd24010fa4199e8ef39b831f6f27138504a9c9d6 (diff)
parentb6c9029c827b37e66d6848611164746219152460 (diff)
downloadnextcloud-server-206ef51eac4f65242658733f6899f7fe3fa473b2.tar.gz
nextcloud-server-206ef51eac4f65242658733f6899f7fe3fa473b2.zip
Merge pull request #2216 from nextcloud/proper-return-value
Use proper return function
-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
},