mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #2216 from nextcloud/proper-return-value
Use proper return function
This commit is contained in:
commit
206ef51eac
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue