Merge pull request #2216 from nextcloud/proper-return-value
Use proper return function
This commit is contained in:
commit
206ef51eac
|
@ -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 New Issue