https://www.ory.sh/ logo
#talk-kratos
Title
# talk-kratos
e

enough-winter-51484

01/26/2022, 1:31 PM
I have little/no experience with Golang. At the moment it is possible to create email templates yourself. In case of verification, the VerificationURL parameter is applied in the template. It would be nice if the flow ID and the Token were also applied as parameters separately. This makes it possible to change the url (and path) manually. The reason for this is that I'm running a custom proxy around Kratos. And I would like to determine the path to the verification request myself. Is it possible to extract the flow id and token in the Gotmpl files? With a function or something like that?
Can this functions be applied in the template? If I have time I will test it myself. : http://masterminds.github.io/sprig/strings.html
m

magnificent-energy-493

01/28/2022, 3:19 PM
Hey Tom, I am not sure to be honest! If you have the chance best try it out 🙂
e

enough-winter-51484

02/02/2022, 3:27 PM
Yes Vincent, it is working, I tried it with the replace function of sprig.🙂
🙌 1
m

magnificent-energy-493

02/02/2022, 4:15 PM
That is good to hear! Maybe we can add this to the Kratos tips e.g.
How can I change the path of verification requests?
does that make sense from our perspective Tom?
e

enough-winter-51484

02/02/2022, 4:35 PM
Maybe, strangely enough, using Sprig is already documented. This is the second time I've looked into something and it turns out it's already in the documentation. I thought I did read it all well.😬 https://www.ory.sh/kratos/docs/concepts/email-sms/#sender-address-and-template-customization
m

magnificent-energy-493

02/02/2022, 5:14 PM
Yea that happens to me more often than I would like to admit. I guess we can leave it at that. Thanks Tom 😄
3 Views