Skip to content

Conversation

@ptormene
Copy link
Member

Fixes #10303

After this change, the default template and those specific for Aelo or Impact installations will still be versioned with git, but the actual files used for the password reset or user creation emails will not be versioned. Therefore, when the authentication is enabled, it will be necessary to copy (and possibly modify) the desired template into the actual files during the installation. If any of the actual files does not exist, a clear error message appears when attempting to run the WebUI or to use the createnormaluser django command, suggesting to create the missing file from one of the available templates.

NB: without this change, in the currently exposed services, git sees modified versions of those files, so we need to stash/pull/pop whenever we need to do any update.

@vot4anto: we need to update our documentation, specifying that we need to actualize the templates after the installation.

…_reset_email(_subject).txt and use templates instead
@ptormene ptormene added this to the Engine 3.23.0 milestone Feb 10, 2025
@ptormene ptormene self-assigned this Feb 10, 2025
@ptormene ptormene marked this pull request as draft February 11, 2025 08:55
@ptormene ptormene marked this pull request as ready for review February 11, 2025 10:29
@ptormene ptormene merged commit b9dfd1e into master Feb 11, 2025
8 checks passed
@ptormene ptormene deleted the registration branch February 11, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WEBUI: change the way registration templates are customized

2 participants