Sha256: e9dafdd703e3d4c30b6307cd9aa244c1783ed3393baba16f1f3dc03caacca53b

Contents?: true

Size: 519 Bytes

Versions: 1

Compression:

Stored size: 519 Bytes

Contents

class Auth::PasswordResetLinkController < ApplicationController
  skip_authentication

  def new
    render inertia: 'Auth/ForgotPassword', props: {
      status: flash[:status]
    }
  end

  def create
    form = Auth::SendPasswordResetLinkForm.new params.permit(:email)

    return redirect_back_or_to password_request_path, inertia: { errors: form.error_messages } unless form.send_reset_link?

    redirect_back_or_to password_request_path, flash: { status: 'We have emailed your password reset link.' }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kaze-0.5.0 stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb