aboutsummaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorhaixunlu <luhaixun@gmail.com>2018-12-18 12:49:30 -0800
committer无闻 <u@gogs.io>2018-12-18 15:49:30 -0500
commit311df9c521f05cdca880152e73dbed47afb74cde (patch)
treef3b9159e6dc23e6659e1da5939ff7f09d7a32c16 /public/js
parentff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce (diff)
auth: add new authentication source: GitHub, including GitHub Enterprise (#5340)
* Add new Authentication Source: GitHub, including GitHub Enterprise. * Add vendor dependencies.
Diffstat (limited to 'public/js')
-rw-r--r--public/js/gogs.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index eb161d17..c57dca4f 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -860,6 +860,7 @@ function initAdmin() {
$('.dldap').hide();
$('.smtp').hide();
$('.pam').hide();
+ $('.github').hide();
$('.has-tls').hide();
var authType = $(this).val();
@@ -877,7 +878,10 @@ function initAdmin() {
case '5': // LDAP
$('.dldap').show();
break;
- }
+ case '6': //GITHUB
+ $('.github').show();
+ break;
+ }
if (authType == '2' || authType == '5') {
onSecurityProtocolChange()