Sha256: 85717e9d535afe83b2c654d3c45ecd5fb59c392d7bc341dacbd8e49b7cdb76ea

Contents?: true

Size: 549 Bytes

Versions: 13

Compression:

Stored size: 549 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, flash: { status: 'We have emailed your password reset link.' } if form.send_reset_link?

    redirect_back_or_to password_request_path, inertia: { errors: form.error_messages }
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
kaze-1.0.1 stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb
kaze-1.0.0 stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb
kaze-0.19.0 stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb
kaze-0.18.0 stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb
kaze-0.17.0 stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb
kaze-0.16.0 stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb
kaze-0.15.0 stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb
kaze-0.14.0 stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb
kaze-0.13.0 stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb
kaze-0.12.0 stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb
kaze-0.11.0 stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb
kaze-0.10.0 stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb
kaze-0.9.0 stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb