From 0e3a539dc54a1ed766c2408ec1daf32e3ff6eab6 Mon Sep 17 00:00:00 2001 From: Kat Date: Thu, 2 Dec 2021 15:31:40 +0000 Subject: [PATCH] Get banner message from mapping --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 89cb56a12..2133b88af 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -6,7 +6,7 @@ class UsersController < ApplicationController def update if current_user.update(user_params) bypass_sign_in current_user - flash[:notice] = "Your password has been changed successfully. You are now signed in." + flash[:notice] = I18n.t("devise.passwords.updated") redirect_to user_path(current_user) end end