Files
chart/community/twofactor-auth/1.2.7/templates/_validation.tpl
2024-05-30 13:21:49 +00:00

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 -}}