diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index 14814ed32..0559d1a4a 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -140,11 +140,11 @@ class MyController < ApplicationController @user.password, @user.password_confirmation = params[:new_password], params[:new_password_confirmation] if @user.save - flash[:notice] = l(:notice_account_password_updated) + flash.now[:notice] = l(:notice_account_password_updated) redirect_to my_account_path end else - flash[:error] = l(:notice_account_wrong_password) + flash.now[:error] = l(:notice_account_wrong_password) end end end