summaryrefslogtreecommitdiffstats
path: root/templates/admin/auth
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@gnome.org>2015-04-23 13:58:57 +0200
committerIgnacio Casal Quinteiro <icq@gnome.org>2015-04-24 10:13:01 +0200
commit182003aa417ba67661c6743e0fabe6e1f67efd1c (patch)
treecff0efe4adedd4bc52b3c852e254a7c4fe0dad99 /templates/admin/auth
parent2c4fb6e6469f756dfaeb276302bac87e4dac3e1e (diff)
downloadgitea-182003aa417ba67661c6743e0fabe6e1f67efd1c.tar.gz
gitea-182003aa417ba67661c6743e0fabe6e1f67efd1c.zip
Add PAM authentication
Diffstat (limited to 'templates/admin/auth')
-rw-r--r--templates/admin/auth/edit.tmpl6
-rw-r--r--templates/admin/auth/new.tmpl6
2 files changed, 12 insertions, 0 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl
index a178b71756..12d1d1f8f2 100644
--- a/templates/admin/auth/edit.tmpl
+++ b/templates/admin/auth/edit.tmpl
@@ -91,6 +91,12 @@
<label class="req" for="smtp_port">{{.i18n.Tr "admin.auths.smtpport"}}</label>
<input class="ipt ipt-large ipt-radius {{if .Err_SmtpPort}}ipt-error{{end}}" id="smtp_port" name="smtp_port" value="{{.Source.SMTP.Port}}" />
</div>
+
+ {{else if eq $type 4}}
+ <div class="field">
+ <label class="req" for="pam_service_name">{{.i18n.Tr "admin.auths.pam_service_name"}}</label>
+ <input class="ipt ipt-large ipt-radius {{if .Err_PAMServiceName}}ipt-error{{end}}" id="pam_service_name" name="pam_service_name" value="{{.Source.PAM.ServiceName}}" />
+ </div>
{{end}}
<div class="field">
diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl
index 0d1f2ab417..36b90cfb48 100644
--- a/templates/admin/auth/new.tmpl
+++ b/templates/admin/auth/new.tmpl
@@ -86,6 +86,12 @@
<input class="ipt ipt-large ipt-radius {{if .Err_SmtpPort}}ipt-error{{end}}" id="smtp_port" name="smtp_port" value="{{.smtp_port}}" />
</div>
</div>
+ <div class="pam hidden">
+ <div class="field">
+ <label class="req" for="pam_service_name">{{.i18n.Tr "admin.auths.pam_service_name"}}</label>
+ <input class="ipt ipt-large ipt-radius {{if .Err_PAMServiceName}}ipt-error{{end}}" id="pam_service_name" name="pam_service_name" value="{{.pam_service_name}}" />
+ </div>
+ </div>
<div class="field">
<div class="smtp hidden">
<label></label>