Files
chart/library/ix-dev/community/twofactor-auth/templates/_validation.tpl
Stavros Kois f780a02ed7 Add 2FAuth to community train (#1571)
* initial commit

* add some templates

* fix config

* add metadata and ci values

* expose more config

* add values

* fix lint

* add ui

* add validation

* whops

* update description

* formatting

* rename app
2023-09-28 18:37:44 +03: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 -}}