I have little/no experience with Golang. At the mo...
# talk-kratos
e
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
Hey Tom, I am not sure to be honest! If you have the chance best try it out 🙂
e
Yes Vincent, it is working, I tried it with the replace function of sprig.🙂
🙌 1
m
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
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
Yea that happens to me more often than I would like to admit. I guess we can leave it at that. Thanks Tom 😄