Sha256: 742de852c68abc983da32989e39259853447603f3735d51be4cb072a32b5f81e

Contents?: true

Size: 552 Bytes

Versions: 3

Compression:

Stored size: 552 Bytes

Contents

class Auth::PasswordResetLinkController < ApplicationController
  include RedirectIfAuthenticated

  skip_authenticate

  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

3 entries across 3 versions & 1 rubygems

Version Path
kaze-0.8.0 stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb
kaze-0.7.0 stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb
kaze-0.6.0 stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb