From 79afcba541f6f86fdf6b18f42e9f056be866d685 Mon Sep 17 00:00:00 2001 From: Mir Bhatia Date: Fri, 8 Oct 2021 00:18:01 +0530 Subject: [PATCH] Add a notification on password reset (#14968) --- app/controllers/passwords_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/passwords_controller.rb b/app/controllers/passwords_controller.rb index 155893785..30c264890 100644 --- a/app/controllers/passwords_controller.rb +++ b/app/controllers/passwords_controller.rb @@ -10,6 +10,7 @@ class PasswordsController < Devise::PasswordsController protected def after_sending_reset_password_instructions_path_for(_resource_name) + flash[:global_notice] = "Your password reset instructions have been sent." session[:referrer] end end