設定を記述
設定を記述する。
config/initializers/devise.rb
Devise.setup do |config|
# ...
config.send_password_change_notification = true
end
メール内容の変更
メール内容を変更する。
app/views/devise/mailer/password_change.html.erb
<p><%= t(:hello).capitalize + '、' + @resource.name %>さん。</p>
<p><%= @resource.email %>のパスワードが変更されました。</p>
参考ページ