6e2be3e60b
See https://meta.discourse.org/t/changing-a-users-email/164512 for additional context. Previously when an admin user changed a user's email we assumed that they would need a password reset too because they likely did not have access to their account. This proved to be incorrect, as there are other reasons a user needs admin to change their email. This PR: * Changes the admin change email for user flow so the user is sent an email to confirm the change * We now record who the email change request was requested by * If the requested by user is admin and not the user we note this in the email sent to the user * We also make the confirm change email route open to anonymous users, so it can be clicked by the user even if they do not have access to their account. If there is a logged in user we make sure the confirmation matches the current user. |
||
---|---|---|
.. | ||
group_smtp_mailer_spec.rb | ||
invite_mailer_spec.rb | ||
rejection_mailer_spec.rb | ||
subscription_mailer_spec.rb | ||
test_mailer_spec.rb | ||
user_notifications_spec.rb | ||
version_mailer_spec.rb |