Notify original user email when the email changes

This adds a new setting `send_email_change_notification` which will
send an email to the original user email when their email is updated to
a new one.

It doesn't take into account the reconfirmable setting yet, it will be
added next, so that if confirmable is included and reconfirmable is
being used, the email will be triggered when the email change is
requested, not when confirmed (e.g when we store the email in
`unconfirmed_email`, not when it's later copied to `email` when that is
confirmed).
This commit is contained in:
Carlos Antonio da Silva
2017-03-06 16:34:38 -03:00
parent bf4641c8cf
commit 70eb18d766
9 changed files with 48 additions and 6 deletions

View File

@@ -23,6 +23,8 @@ en:
subject: "Reset password instructions"
unlock_instructions:
subject: "Unlock instructions"
email_change:
subject: "Email Changed"
password_change:
subject: "Password Changed"
omniauth_callbacks: