summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2018-01-03 11:48:45 +0100
committerGitHub <noreply@github.com>2018-01-03 11:48:45 +0100
commit02b092f35830b916c4fc61413600f5ca86d1630a (patch)
treea5cfd5abfc70236ff0d1cfe68ba23b401d47e21c /core/js
parent86d33cf50ffff86a6641ab113bce6801802f19cb (diff)
parent57050146f686d724a9c7ac2c099a6e8b8d591b76 (diff)
downloadnextcloud-server-02b092f35830b916c4fc61413600f5ca86d1630a.tar.gz
nextcloud-server-02b092f35830b916c4fc61413600f5ca86d1630a.zip
Merge pull request #7487 from nextcloud/no-password-confirm-with-sso
disable password confirmation with SSO
Diffstat (limited to 'core/js')
-rw-r--r--core/js/js.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js
index a9180663405..0b28310c728 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -1682,7 +1682,8 @@ OC.PasswordConfirmation = {
requiresPasswordConfirmation: function() {
var timeSinceLogin = moment.now() - (nc_lastLogin * 1000);
- return timeSinceLogin > 30 * 60 * 1000; // 30 minutes
+ // if timeSinceLogin > 30 minutes and user backend allows password confirmation
+ return (backendAllowsPasswordConfirmation && timeSinceLogin > 30 * 60 * 1000);
},
/**