diff options
author | techknowlogick <techknowlogick@gitea.io> | 2019-09-12 22:15:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-12 22:15:36 -0400 |
commit | 2837563147d18dba263ed4c7a1b87571474220c4 (patch) | |
tree | 653d95c0538e1e32853ebbc52ee1487994159715 /public | |
parent | cff0787759304fcebf1c0e21709158e7d4f1967f (diff) | |
download | gitea-2837563147d18dba263ed4c7a1b87571474220c4.tar.gz gitea-2837563147d18dba263ed4c7a1b87571474220c4.zip |
oauth2 with remote Gitea - Fix #8093 (#8149)
Diffstat (limited to 'public')
-rw-r--r-- | public/img/auth/gitea.png | bin | 0 -> 5576 bytes | |||
-rw-r--r-- | public/js/index.js | 2 |
2 files changed, 2 insertions, 0 deletions
diff --git a/public/img/auth/gitea.png b/public/img/auth/gitea.png Binary files differnew file mode 100644 index 0000000000..30d3313594 --- /dev/null +++ b/public/img/auth/gitea.png diff --git a/public/js/index.js b/public/js/index.js index 882f19e13d..d99457514b 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1576,6 +1576,7 @@ function initAdmin() { switch (provider) { case 'github': case 'gitlab': + case 'gitea': $('.oauth2_use_custom_url').show(); break; case 'openidConnect': @@ -1609,6 +1610,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 'gitea': case 'gitlab': $('.oauth2_token_url input, .oauth2_auth_url input, .oauth2_profile_url input').attr('required', 'required'); $('.oauth2_token_url, .oauth2_auth_url, .oauth2_profile_url').show(); |