Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nextcloud oauth #10562

Merged
merged 8 commits into from
Mar 3, 2020
Prev Previous commit
Next Next commit
nextcloud oauth - allow customization via JS
  • Loading branch information
techknowlogick committed Mar 2, 2020
commit 25515436aab7fa69ceae4aa7940a052f94deea86
2 changes: 2 additions & 0 deletions web_src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1892,6 +1892,7 @@ function initAdmin() {
case 'github':
case 'gitlab':
case 'gitea':
case 'nextcloud':
$('.oauth2_use_custom_url').show();
break;
case 'openidConnect':
Expand Down Expand Up @@ -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');
Expand Down