ory / kratos

The most scalable and customizable identity server on the market. Replace your Homegrown, Auth0, Okta, Firebase with better UX and DX. Has all the tablestakes: Passkeys, Social Sign In, Multi-Factor Auth, SMS, SAML, TOTP, and more. Written in Go, cloud native, headless, API-first. Available as a service on Ory Network and for self-hosters.
https://www.ory.sh/?utm_source=github&utm_medium=banner&utm_campaign=kratos
Apache License 2.0
11.12k stars 954 forks source link

Ability to insert a (non-hermetic) date in email templates #3925

Open psirenny opened 4 months ago

psirenny commented 4 months ago

Preflight checklist

Ory Network Project

https://focused-haslett-fu9fyz1hio.projects.oryapis.com

Describe your problem

We're trying to include a copyright year at the bottom of our email templates. However, this is challenging because Sprig date functions are unsupported.

Describe your ideal solution

Ideally, we'd have access to Sprig date functions or have access to global variables like the current year.

Workarounds or alternatives

We considered compiling a new template every year and updating our Ory Network configuration. But this complicates CI/CD.

Version

v1.1.0

Additional Context

No response