mirror of
https://github.com/truenas/charts.git
synced 2026-04-23 18:10:06 +08:00
14 lines
482 B
Smarty
14 lines
482 B
Smarty
{{- define "twofauth.validation" -}}
|
|
{{- if eq .Values.twofauthConfig.authenticationGuard "reverse-proxy-guard" -}}
|
|
|
|
{{- if not .Values.twofauthConfig.authProxyHeaderUser -}}
|
|
{{- fail "[Auth Proxy Header User] is required when using reverse-proxy-guard" -}}
|
|
{{- end -}}
|
|
|
|
{{- if not .Values.twofauthConfig.authProxyHeaderEmail -}}
|
|
{{- fail "[Auth Proxy Header Email] is required when using reverse-proxy-guard" -}}
|
|
{{- end -}}
|
|
|
|
{{- end }}
|
|
{{- end -}}
|