Sha256: 5a4d153fe4e80bbc15da8f7cd5a8c484b47a067edb7db5f25cce6a8f6de1929d
Contents?: true
Size: 519 Bytes
Versions: 4
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
4 entries across 4 versions & 1 rubygems