]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use proper return function 2216/head
authorLukas Reschke <lukas@statuscode.ch>
Mon, 21 Nov 2016 14:14:32 +0000 (15:14 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Mon, 21 Nov 2016 14:14:32 +0000 (15:14 +0100)
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
core/js/js.js

index 64c7dda31e2979c64a967ff81b300cef44b99a92..41041a42885ae93a489c94875fc74e6870a741a9 100644 (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
        },