|
23 | 23 |
|
24 | 24 | <!-- LDAP and DLDAP --> |
25 | 25 | {{if or .Source.IsLDAP .Source.IsDLDAP}} |
26 | | - {{ $cfg:=.Source.Cfg }} |
| 26 | + {{$cfg:=.Source.Cfg}} |
27 | 27 | <div class="inline required field {{if .Err_SecurityProtocol}}error{{end}}"> |
28 | 28 | <label>{{.locale.Tr "admin.auths.security_protocol"}}</label> |
29 | 29 | <div class="ui selection security-protocol dropdown"> |
|
180 | 180 |
|
181 | 181 | <!-- SMTP --> |
182 | 182 | {{if .Source.IsSMTP}} |
183 | | - {{ $cfg:=.Source.Cfg }} |
| 183 | + {{$cfg:=.Source.Cfg}} |
184 | 184 | <div class="inline required field"> |
185 | 185 | <label>{{.locale.Tr "admin.auths.smtp_auth"}}</label> |
186 | 186 | <div class="ui selection type dropdown"> |
|
242 | 242 |
|
243 | 243 | <!-- PAM --> |
244 | 244 | {{if .Source.IsPAM}} |
245 | | - {{ $cfg:=.Source.Cfg }} |
| 245 | + {{$cfg:=.Source.Cfg}} |
246 | 246 | <div class="required field"> |
247 | 247 | <label for="pam_service_name">{{.locale.Tr "admin.auths.pam_service_name"}}</label> |
248 | 248 | <input id="pam_service_name" name="pam_service_name" value="{{$cfg.ServiceName}}" required> |
|
262 | 262 |
|
263 | 263 | <!-- OAuth2 --> |
264 | 264 | {{if .Source.IsOAuth2}} |
265 | | - {{ $cfg:=.Source.Cfg }} |
| 265 | + {{$cfg:=.Source.Cfg}} |
266 | 266 | <div class="inline required field"> |
267 | 267 | <label>{{.locale.Tr "admin.auths.oauth2_provider"}}</label> |
268 | 268 | <div class="ui selection type dropdown"> |
|
337 | 337 |
|
338 | 338 | <div class="field"> |
339 | 339 | <label for="oauth2_scopes">{{.locale.Tr "admin.auths.oauth2_scopes"}}</label> |
340 | | - <input id="oauth2_scopes" name="oauth2_scopes" value="{{if $cfg.Scopes}}{{Join $cfg.Scopes "," }}{{end}}"> |
| 340 | + <input id="oauth2_scopes" name="oauth2_scopes" value="{{if $cfg.Scopes}}{{Join $cfg.Scopes ","}}{{end}}"> |
341 | 341 | </div> |
342 | 342 | <div class="field"> |
343 | 343 | <label for="oauth2_required_claim_name">{{.locale.Tr "admin.auths.oauth2_required_claim_name"}}</label> |
|
365 | 365 |
|
366 | 366 | <!-- SSPI --> |
367 | 367 | {{if .Source.IsSSPI}} |
368 | | - {{ $cfg:=.Source.Cfg }} |
| 368 | + {{$cfg:=.Source.Cfg}} |
369 | 369 | <div class="field"> |
370 | 370 | <div class="ui checkbox"> |
371 | 371 | <label for="sspi_auto_create_users"><strong>{{.locale.Tr "admin.auths.sspi_auto_create_users"}}</strong></label> |
|
0 commit comments