mirror of
https://github.com/gogs/gogs.git
synced 2025-12-20 23:30:00 +01:00
auth: add new authentication source: GitHub, including GitHub Enterprise (#5340)
* Add new Authentication Source: GitHub, including GitHub Enterprise. * Add vendor dependencies.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user