aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r--web_src/js/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index c25bce1d00..cdabffe04d 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -1798,6 +1798,7 @@ function initAdmin() {
case 'gitlab':
case 'gitea':
case 'nextcloud':
+ case 'mastodon':
$('.oauth2_use_custom_url').show();
break;
case 'openidConnect':
@@ -1831,6 +1832,10 @@ function initAdmin() {
$('.oauth2_token_url, .oauth2_auth_url, .oauth2_profile_url').show();
$('#oauth2_email_url').val('');
break;
+ case 'mastodon':
+ $('.oauth2_auth_url input').attr('required', 'required');
+ $('.oauth2_auth_url').show();
+ break;
}
}
}