diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-03-20 07:35:08 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-03-20 07:35:08 +0000 |
commit | a47eab8868350fa0fbecfda817560b5d8c745f9a (patch) | |
tree | 8a585ea31758e8628b719826e879a061566f3cf3 /app/controllers/my_controller.rb | |
parent | 46a4151f09359c9c64a2073d20c0267d64cdb516 (diff) | |
download | redmine-a47eab8868350fa0fbecfda817560b5d8c745f9a.tar.gz redmine-a47eab8868350fa0fbecfda817560b5d8c745f9a.zip |
Let the mailer set the email content (#21421).
git-svn-id: http://svn.redmine.org/redmine/trunk@15267 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/my_controller.rb')
-rw-r--r-- | app/controllers/my_controller.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index 3acd92658..15ec0892a 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -105,12 +105,7 @@ class MyController < ApplicationController if @user.save # The session token was destroyed by the password change, generate a new one session[:tk] = @user.generate_session_token - Mailer.security_notification(@user, - message: :mail_body_security_notification_change, - field: :field_password, - title: :button_change_password, - url: {controller: 'my', action: 'password'} - ).deliver + Mailer.password_updated(@user) flash[:notice] = l(:notice_account_password_updated) redirect_to my_account_path end |