1
0
Fork 0
forked from forgejo/forgejo

nextcloud oauth (#10562)

Fix #7078
This commit is contained in:
techknowlogick 2020-03-02 22:11:45 -05:00 committed by GitHub
parent 07f6ae30e4
commit bea497ff96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 396 additions and 3 deletions

View file

@ -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');