Skip to content

Commit

Permalink
feat: add support for Kratos v0.6 email templates (#265)
Browse files Browse the repository at this point in the history
Co-authored-by: hackerman <[email protected]>
  • Loading branch information
anonrig and aeneasr committed May 21, 2021
1 parent 7fda5f1 commit 8a031a0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm/charts/kratos/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
appVersion: "0.5.2-alpha.1-sqlite"
appVersion: "0.6.3-alpha.1"
description: A ORY Kratos Helm chart for Kubernetes
name: kratos
version: 0.12.0
version: 0.12.1
type: application
4 changes: 4 additions & 0 deletions helm/charts/kratos/templates/configmap-templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@ data:
"email.body.gotmpl": |-
{{ $resultEntry.body | indent 4 }}
{{- end }}
{{- if $resultEntry.plainBody }}
"email.body.plaintext.gotmpl": |-
{{ $resultEntry.plainBody | indent 4 }}
{{- end }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions helm/charts/kratos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,22 +106,26 @@ kratos:
# Hi, please recover access to your account by clicking the following link:
#
# <a href="{{ .RecoveryURL }}">{{ .RecoveryURL }}</a>
# plainBody: Hi, please recover access to your account by clicking the following link: {{ .RecoveryURL }}
# invalid:
# subject: Account access attempted
# body: |-
# Hi, you (or someone else) entered this email address when trying to recover access to an account.
#
# However, this email address is not on our database of registered users and therefore the attempt has failed. If this was you, check if you signed up using a different address. If this was not you, please ignore this email.
# plainBody: Hi, you (or someone else) entered this email address when trying to recover access to an account.
# verification:
# valid:
# subject: Please verify your email address
# body: |-
# Hi, please verify your account by clicking the following link:
#
# <a href="{{ .RecoveryURL }}">{{ .RecoveryURL }}</a>
# plainBody: Hi, please verify your account by clicking the following link: {{ .RecoveryURL }}
# invalid:
# subject:
# body:
# plainBody:

config:
courier:
Expand Down

0 comments on commit 8a031a0

Please sign in to comment.