Add a notification on password reset (#14968)

This commit is contained in:
Mir Bhatia 2021-10-08 00:18:01 +05:30 committed by GitHub
parent b0a79da072
commit 79afcba541
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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