Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AO3-6772 Create reset_password_instructions mailer preview #4895

Conversation

Bilka2
Copy link
Contributor

@Bilka2 Bilka2 commented Aug 16, 2024

Issue

https://otwarchive.atlassian.net/browse/AO3-6772

Purpose

Create reset_password_instructions mailer preview. Modify devise's mail sending to move the I18n.with_locale call so the locale dropdown in the mailer preview will work.

Testing Instructions

See Jira.

Credit

Bilka (he/him)

The url is in the form of "https://archiveofourown.org/users/password/edit?reset_password_token=Token"

Nothing in this url could become mangled by getting html escaped, it's a
standard url and the Token is generated with SecureRandom.urlsafe_base64
without padding, so can only contain A-Z, a-z, 0-9, - and _.
So it does not need to be marked as html_safe.

Additionally, the admin version of this mail also doesn't call html_safe
on the url, neither does devise's own implementation of it.
@brianjaustin brianjaustin merged commit 927ca65 into otwcode:master Sep 8, 2024
29 checks passed
@Bilka2 Bilka2 deleted the AO3-6772-reset-password-instructions-mailer-preview branch September 12, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants