Skip to content

Commit 116f109

Browse files
committed
fix edit template
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 70b1975 commit 116f109

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

templates/admin/auth/edit.tmpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<!-- LDAP and DLDAP -->
2424
{{if or .Source.IsLDAP .Source.IsDLDAP}}
25-
{{ $cfg:=.Source.LDAP }}
25+
{{ $cfg:=.Source.Cfg }}
2626
<div class="inline required field {{if .Err_SecurityProtocol}}error{{end}}">
2727
<label>{{.i18n.Tr "admin.auths.security_protocol"}}</label>
2828
<div class="ui selection security-protocol dropdown">
@@ -151,7 +151,7 @@
151151

152152
<!-- SMTP -->
153153
{{if .Source.IsSMTP}}
154-
{{ $cfg:=.Source.SMTP }}
154+
{{ $cfg:=.Source.Cfg }}
155155
<div class="inline required field">
156156
<label>{{.i18n.Tr "admin.auths.smtp_auth"}}</label>
157157
<div class="ui selection type dropdown">
@@ -182,7 +182,7 @@
182182

183183
<!-- PAM -->
184184
{{if .Source.IsPAM}}
185-
{{ $cfg:=.Source.PAM }}
185+
{{ $cfg:=.Source.Cfg }}
186186
<div class="required field">
187187
<label for="pam_service_name">{{.i18n.Tr "admin.auths.pam_service_name"}}</label>
188188
<input id="pam_service_name" name="pam_service_name" value="{{$cfg.ServiceName}}" required>
@@ -195,7 +195,7 @@
195195

196196
<!-- OAuth2 -->
197197
{{if .Source.IsOAuth2}}
198-
{{ $cfg:=.Source.OAuth2 }}
198+
{{ $cfg:=.Source.Cfg }}
199199
<div class="inline required field">
200200
<label>{{.i18n.Tr "admin.auths.oauth2_provider"}}</label>
201201
<div class="ui selection type dropdown">
@@ -258,7 +258,7 @@
258258

259259
<!-- SSPI -->
260260
{{if .Source.IsSSPI}}
261-
{{ $cfg:=.Source.SSPI }}
261+
{{ $cfg:=.Source.Cfg }}
262262
<div class="field">
263263
<div class="ui checkbox">
264264
<label for="sspi_auto_create_users"><strong>{{.i18n.Tr "admin.auths.sspi_auto_create_users"}}</strong></label>

0 commit comments

Comments
 (0)