Production Build Working
CI / scan_ruby (push) Failing after 37s
CI / lint (push) Failing after 39s

This commit is contained in:
Jason Jordan
2026-09-16 12:41:44 -04:00
parent 9853d58469
commit 1c80e642f5
51 changed files with 648 additions and 440 deletions
+21 -16
View File
@@ -1,25 +1,30 @@
# frozen_string_literal: true
class Users::PasswordsController < Devise::PasswordsController
# GET /resource/password/new
# def new
# super
# end
# POST /users/password
def create
self.resource = resource_class.send_reset_password_instructions(resource_params)
yield resource if block_given?
# POST /resource/password
# def create
# super
# end
if successfully_sent?(resource)
render json: { message: "Password reset instructions sent successfully." }, status: :ok
else
render json: { errors: resource.errors.full_messages }, status: :unprocessable_entity
end
end
# GET /resource/password/edit?reset_password_token=abcdef
# def edit
# super
# end
# PUT /users/password
def update
self.resource = resource_class.reset_password_by_token(resource_params)
yield resource if block_given?
# PUT /resource/password
# def update
# super
# end
if resource.errors.empty?
resource.unlock_access! if unlockable?(resource)
render json: { message: "Password updated successfully." }, status: :ok
else
render json: { errors: resource.errors.full_messages }, status: :unprocessable_entity
end
end
# protected