1
0
Fork 0
forked from forgejo/forgejo

#12897 - add mastodon provider (#13293)

* 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:
Divyam Bhasin 2020-10-25 14:21:49 -04:00 committed by GitHub
parent f565cf5dcf
commit 7974b34183
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 327 additions and 1 deletions

View file

@ -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;
}
}
}