You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Is there a way to pass extra context variables to the template rendering? This appears hard-coded after finding the rendering in the source.
Maybe a callable function defined in the settings could help generate a supplemental context. Specifically, I'm looking to pass in the front-end base URL for a logo image in the html templates.
Thanks!
The text was updated successfully, but these errors were encountered:
@joshvillbrandt
I added ‘VERIFICATION_TEMPLATE_CONTEXT_BUILDER’ settings key so the template context can be customized. The signature of the function looks as follows:
Changes:
* Resolve issue #77: Allow using DRR without templates setup
* Fix issue #79: do not create user when sending verification fails
* Fix issue #83: Support change to already existing e-mail in the DB
Detect whether user email field is unique. If yes, then send "e-mail
already exists" notification instead of verification one.
Also, perform a check just before changing the e-mail to avoid
integrity errors.
* Fix issue #68
Add VERIFICATION_TEMPLATE_CONTEXT_BUILDER settings key
* Fix invalid config in README
Hi! Is there a way to pass extra context variables to the template rendering? This appears hard-coded after finding the rendering in the source.
Maybe a callable function defined in the settings could help generate a supplemental context. Specifically, I'm looking to pass in the front-end base URL for a logo image in the html templates.
Thanks!
The text was updated successfully, but these errors were encountered: