From 311df9c521f05cdca880152e73dbed47afb74cde Mon Sep 17 00:00:00 2001 From: haixunlu Date: Tue, 18 Dec 2018 12:49:30 -0800 Subject: auth: add new authentication source: GitHub, including GitHub Enterprise (#5340) * Add new Authentication Source: GitHub, including GitHub Enterprise. * Add vendor dependencies. --- public/js/gogs.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'public/js') 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() -- cgit v1.2.3