]> source.dussan.org Git - gitea.git/commitdiff
Fix adding a new authentication source after selecting OAuth (#2889)
authorShaun <shaun.dowling@gmail.com>
Sat, 11 Nov 2017 23:18:21 +0000 (23:18 +0000)
committerLauris BH <lauris@nix.lv>
Sat, 11 Nov 2017 23:18:21 +0000 (01:18 +0200)
public/js/index.js

index b6438f296f91e15a76e905573b12a1317bb58fd6..3fe828e0008f053e5a44f4b5756ec91c2ceaab26 100644 (file)
@@ -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) {