1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-06-13 23:20:49 +00:00

Fix adding a new authentication source after selecting OAuth (#2889)

This commit is contained in:
Shaun 2017-11-11 23:18:21 +00:00 committed by Lauris BH
parent 524cca3a1e
commit dd026a4ebb

View 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) {