Method: ActiveAuthentication::PasswordsController#create

Defined in:
app/controllers/active_authentication/passwords_controller.rb

#createObject



8
9
10
11
12
# File 'app/controllers/active_authentication/passwords_controller.rb', line 8

def create
  @user = User.find_by email: params[:email]
  @user&.send_password_reset_instructions
  redirect_to root_url, notice: t(".success")
end