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