Sha256: 983108b5dffe820caa9a940fad73649fe8145795356c71f2ca62ce6fc75c89eb
Contents?: true
Size: 508 Bytes
Versions: 2
Compression:
Stored size: 508 Bytes
Contents
class Auth::PasswordResetLinkController < ApplicationController skip_authentication 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kaze-0.4.0 | stubs/hotwire/app/controllers/auth/password_reset_link_controller.rb |
kaze-0.3.0 | stubs/hotwire/app/controllers/auth/password_reset_link_controller.rb |