mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix adding a new authentication source after selecting OAuth (#2889)
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user