Sha256: 06297f12e664ffd5dba176f45b64818ecd2efd46bf2ddc537a98d581fb5cf862
Contents?: true
Size: 532 Bytes
Versions: 4
Compression:
Stored size: 532 Bytes
Contents
class Auth::NewPasswordController < ApplicationController skip_authentication def new render inertia: "Auth/ResetPassword", props: { token: params[:token] } end def create form = Auth::NewPasswordForm.new params.permit(:token, :password, :password_confirmation) return redirect_to login_path, flash: { status: "Your password has been reset." } if form.reset? redirect_back_or_to password_reset_path(token: form.token), inertia: { errors: form.error_messages } end end
Version data entries
4 entries across 4 versions & 1 rubygems