Merge pull request #2216 from nextcloud/proper-return-value

Use proper return function
This commit is contained in:
Lukas Reschke 2016-11-21 17:34:46 +01:00 committed by GitHub
commit 206ef51eac
1 changed files with 1 additions and 2 deletions

View File

@ -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
},