]> source.dussan.org Git - redmine.git/commitdiff
Adds a specific string for password changed notification (#21421).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 8 May 2016 08:27:24 +0000 (08:27 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 8 May 2016 08:27:24 +0000 (08:27 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15399 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/mailer.rb
config/locales/en.yml
config/locales/fr.yml

index dba3107eda8f59ff0a6249502aaa24e22d3039b3..79f3229e74191f80d33fd399c3d3877d0b2d18ee 100644 (file)
@@ -313,8 +313,7 @@ class Mailer < ActionMailer::Base
   # Notifies user that his password was updated
   def self.password_updated(user)
     Mailer.security_notification(user,
-      message: :mail_body_security_notification_change,
-      field: :field_password,
+      message: :mail_body_password_updated,
       title: :button_change_password,
       url: {controller: 'my', action: 'password'}
     ).deliver
index f7c696dca3c13c4c125deb00edf2be3743979f98..e1a8f2bd46a3afb8a9812cf20e4152f8745d1d41 100644 (file)
@@ -236,6 +236,7 @@ en:
   mail_body_security_notification_notify_enabled: "Email address %{value} now receives notifications."
   mail_body_security_notification_notify_disabled: "Email address %{value} no longer receives notifications."
   mail_body_settings_updated: "The following settings were changed:"
+  mail_body_password_updated: "Your password has been changed."
 
   field_name: Name
   field_description: Description
index a8e7e5c466bde67843365f1585b8c7c29d8e5370..475a5b0f027ebecfe37d5e1fb3e6858908f5208f 100644 (file)
@@ -249,6 +249,7 @@ fr:
   mail_subject_wiki_content_updated: "Page wiki '%{id}' mise à jour"
   mail_body_wiki_content_updated: "La page wiki '%{id}' a été mise à jour par %{author}."
   mail_body_settings_updated: "Les paramètres suivants ont été modifiés :"
+  mail_body_password_updated: "Votre mot de passe a été changé."
 
   field_name: Nom
   field_description: Description