Use proper return function
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
efdef8f801
commit
b6c9029c82
|
@ -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