summaryrefslogtreecommitdiffstats
path: root/web_src/js/index.js
diff options
context:
space:
mode:
authorDivyam Bhasin <divbest99@gmail.com>2020-10-25 14:21:49 -0400
committerGitHub <noreply@github.com>2020-10-25 14:21:49 -0400
commit7974b3418350c180df70111da611047f09122fa9 (patch)
tree869fad1ab88c8deca8f6e1eba01cb2b0a47a539e /web_src/js/index.js
parentf565cf5dcfa6a674eff2a7b3d47f47c77c6ed9d7 (diff)
downloadgitea-7974b3418350c180df70111da611047f09122fa9.tar.gz
gitea-7974b3418350c180df70111da611047f09122fa9.zip
#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>
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r--web_src/js/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index c25bce1d00..cdabffe04d 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -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;
}
}
}