diff options
Diffstat (limited to 'templates/admin/auth/new.tmpl')
-rw-r--r-- | templates/admin/auth/new.tmpl | 8 |
1 files changed, 6 insertions, 2 deletions
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 @@ <label for="pam_service_name">{{.i18n.Tr "admin.auths.pam_service_name"}}</label> <input id="pam_service_name" name="pam_service_name" value="{{.pam_service_name}}" /> </div> - + <!-- GitHub Oauth 2.0 --> + <div class="github required field {{if not (eq .type 6)}}hide{{end}}"> + <label for="github_api_endpoint">{{.i18n.Tr "admin.auths.github_api_endpoint"}}</label> + <input id="github_api_endpoint" name="github_api_endpoint" value="{{.github_api_endpoint}}" placeholder="e.g. https://api.github.com" /> + </div> <div class="ldap field"> <div class="ui checkbox"> <label><strong>{{.i18n.Tr "admin.auths.attributes_in_bind"}}</strong></label> @@ -183,7 +187,7 @@ <input name="is_active" type="checkbox" {{if .is_active}}checked{{end}}> </div> </div> - + <div class="inline field"> <div class="ui checkbox"> <label><strong>{{.i18n.Tr "admin.auths.default_auth"}}</strong></label> |