From dd026a4ebb4a53c4cf644261b55772921181a7e8 Mon Sep 17 00:00:00 2001 From: Shaun Date: Sat, 11 Nov 2017 23:18:21 +0000 Subject: [PATCH] Fix adding a new authentication source after selecting OAuth (#2889) --- public/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/index.js b/public/js/index.js index b6438f296..3fe828e00 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1114,7 +1114,7 @@ function initAdmin() { $('#auth_type').change(function () { $('.ldap, .dldap, .smtp, .pam, .oauth2, .has-tls').hide(); - $('.ldap input[required], .dldap input[required], .smtp input[required], .pam input[required], .oauth2 input[required] .has-tls input[required]').removeAttr('required'); + $('.ldap input[required], .dldap input[required], .smtp input[required], .pam input[required], .oauth2 input[required], .has-tls input[required]').removeAttr('required'); var authType = $(this).val(); switch (authType) {