Sha256: 5bff4cfa3f107d93173e4374713e312e944622673f9eef77d6356134e86e1c3f

Contents?: true

Size: 542 Bytes

Versions: 9

Compression:

Stored size: 542 Bytes

Contents

class Auth::PasswordResetLinkController < ApplicationController
  include RedirectIfAuthenticated

  skip_authenticate

  layout 'guest'

  def new
    @form = Auth::SendPasswordResetLinkForm.new

    render 'auth/forgot_password'
  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?

    render 'auth/forgot_password', status: :unprocessable_entity
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kaze-0.17.0 stubs/hotwire/app/controllers/auth/password_reset_link_controller.rb
kaze-0.16.0 stubs/hotwire/app/controllers/auth/password_reset_link_controller.rb
kaze-0.15.0 stubs/hotwire/app/controllers/auth/password_reset_link_controller.rb
kaze-0.14.0 stubs/hotwire/app/controllers/auth/password_reset_link_controller.rb
kaze-0.13.0 stubs/hotwire/app/controllers/auth/password_reset_link_controller.rb
kaze-0.12.0 stubs/hotwire/app/controllers/auth/password_reset_link_controller.rb
kaze-0.11.0 stubs/hotwire/app/controllers/auth/password_reset_link_controller.rb
kaze-0.10.0 stubs/hotwire/app/controllers/auth/password_reset_link_controller.rb
kaze-0.9.0 stubs/hotwire/app/controllers/auth/password_reset_link_controller.rb