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. --- templates/admin/auth/edit.tmpl | 8 ++++++++ templates/admin/auth/new.tmpl | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'templates/admin/auth') diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index 1db69e69..85ae3eb0 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -168,6 +168,14 @@ {{end}} + + {{if .Source.IsGITHUB}} + {{ $cfg:=.Source.GITHUB }} +
+ + +
+ {{end}}
diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl index fa4c1271..0fd768f0 100644 --- a/templates/admin/auth/new.tmpl +++ b/templates/admin/auth/new.tmpl @@ -157,7 +157,11 @@
- + +
+ + +
@@ -183,7 +187,7 @@
- +
-- cgit v1.2.3