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

ANW-1477 Password reset fixes/updates #3049

Merged
merged 2 commits into from
Sep 18, 2023
Merged

Conversation

donaldjosephsmith
Copy link
Collaborator

This addresses an issue and discussion on #2979

The view path setup for ActionMailer was not correct for release builds running on Jetty (via archivesspace.sh). This should take care of that. We now don't indicate to the user that an email address was not found for password reset, instead stating that if the account exists, and email will be sent. Also removes "recover" terminology in favor of "reset" for clarity/consistency.

The user_mailer uses standard ERB templates when composing emails. Being
that the backend is a Sinatra app, it doesn't have Action View available
for locating them. The method originally used to find them worked in the
dev environment, but not in a release running on Jetty. This minimal
change should append the correct view path in both cases. It will also
only append the path once (in the initializer) instead of doing it every
time send_reset_token is called.
@donaldjosephsmith donaldjosephsmith marked this pull request as ready for review September 15, 2023 17:10
Copy link
Collaborator

@brianzelip brianzelip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍. Tested via docker as mentioned in #2979

@brianzelip brianzelip merged commit 14c73b6 into master Sep 18, 2023
12 checks passed
@brianzelip brianzelip deleted the password-reset-fixes branch September 18, 2023 10:08
@cdibella cdibella added this to the 3.5.0 milestone Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants