diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2015-04-24 16:43:58 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2015-04-24 16:43:58 +0800 |
commit | f92bdf875b4ccb2a8eadaa571d112ebf653986d6 (patch) | |
tree | 7bdcb2774039667c0ff01deabd283840cd2aaa74 /templates | |
parent | 5de0b0c5cef74e762eb499b6517d0416f2c6bace (diff) | |
parent | 182003aa417ba67661c6743e0fabe6e1f67efd1c (diff) | |
download | gitea-f92bdf875b4ccb2a8eadaa571d112ebf653986d6.tar.gz gitea-f92bdf875b4ccb2a8eadaa571d112ebf653986d6.zip |
Merge pull request #1226 from nice-software/wip/pam
Add PAM authentication
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/auth/edit.tmpl | 6 | ||||
-rw-r--r-- | templates/admin/auth/new.tmpl | 6 |
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> |