aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2020-03-02 22:11:45 -0500
committerGitHub <noreply@github.com>2020-03-02 22:11:45 -0500
commitbea497ff96f4deae617e54468576d11d105e2125 (patch)
tree9c59c9bc2f987733c4f8a535781d16acbd68b563 /web_src
parent07f6ae30e49b3dd64280d0eeb142de89806365ea (diff)
downloadgitea-bea497ff96f4deae617e54468576d11d105e2125.tar.gz
gitea-bea497ff96f4deae617e54468576d11d105e2125.zip
nextcloud oauth (#10562)
Fix #7078
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index fcf9701c3c..b2eec525d3 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -1892,6 +1892,7 @@ function initAdmin() {
case 'github':
case 'gitlab':
case 'gitea':
+ case 'nextcloud':
$('.oauth2_use_custom_url').show();
break;
case 'openidConnect':
@@ -1925,6 +1926,7 @@ function initAdmin() {
$('.oauth2_token_url input, .oauth2_auth_url input, .oauth2_profile_url input, .oauth2_email_url input').attr('required', 'required');
$('.oauth2_token_url, .oauth2_auth_url, .oauth2_profile_url, .oauth2_email_url').show();
break;
+ case 'nextcloud':
case 'gitea':
case 'gitlab':
$('.oauth2_token_url input, .oauth2_auth_url input, .oauth2_profile_url input').attr('required', 'required');