forked from forgejo/forgejo
* added mastodon provider to oauth code * changed go.mod and vendor/modules.txt to add updated goth * vendored mastodon and new goth * committing result of go mod tidy && go mod vendor * added pic and mastodon to oauth models * handled instance url * applied lafriks suggestion * Update web_src/js/index.js Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net>
This commit is contained in:
parent
f565cf5dcf
commit
7974b34183
11 changed files with 327 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue