]> cat aescling's git repositories - mastodon.git/commit
Add confirmation step for email changes (#6071)
authorPatrick Figel <patrick@figel.email>
Tue, 2 Jan 2018 15:55:00 +0000 (16:55 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 2 Jan 2018 15:55:00 +0000 (16:55 +0100)
commit04ecf44c2f78ae29911027352a3e9fb21187e20c
treeb7cd1393ef5c0a938d5c928327f563f4bb206290
parentb6af88192ff48372c5f6ed1321f21d99aaffcd3f
Add confirmation step for email changes (#6071)

* Add confirmation step for email changes

This adds a confirmation step for email changes of existing users.
Like the initial account confirmation, a confirmation link is sent
to the new address.

Additionally, a notification is sent to the existing address when
the change is initiated. This message includes instruction to reset
the password immediately or to contact the instance admin if the
change was not initiated by the account owner.

Fixes #3871

* Add review fixes
12 files changed:
Gemfile
Gemfile.lock
app/controllers/auth/registrations_controller.rb
app/mailers/user_mailer.rb
app/models/user.rb
app/views/user_mailer/email_changed.en.html.erb [new file with mode: 0644]
app/views/user_mailer/email_changed.en.text.erb [new file with mode: 0644]
app/views/user_mailer/reconfirmation_instructions.en.html.erb [new file with mode: 0644]
app/views/user_mailer/reconfirmation_instructions.en.text.erb [new file with mode: 0644]
config/initializers/devise.rb
config/locales/devise.en.yml
spec/mailers/user_mailer_spec.rb