mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 12:15:43 +01:00
Fix adding a new authentication source after selecting OAuth (#2889)
This commit is contained in:
parent
524cca3a1e
commit
dd026a4ebb
1 changed files with 1 additions and 1 deletions
|
@ -1114,7 +1114,7 @@ function initAdmin() {
|
||||||
$('#auth_type').change(function () {
|
$('#auth_type').change(function () {
|
||||||
$('.ldap, .dldap, .smtp, .pam, .oauth2, .has-tls').hide();
|
$('.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();
|
var authType = $(this).val();
|
||||||
switch (authType) {
|
switch (authType) {
|
||||||
|
|
Loading…
Reference in a new issue