This commit is contained in:
2025-07-09 23:58:03 +09:00
parent 9be4bb1532
commit b83fc6369a
4 changed files with 46 additions and 38 deletions
@@ -9,8 +9,6 @@ class ApplicationController < ActionController::API
def authenticate_user
code = request.headers['X-Transfer-Code'] || request.headers['HTTP_X_TRANSFER_CODE']
@current_user = User.find_by inheritance_code: code
Rails.logger.info("X-Transfer-Code: #{request.headers['X-Transfer-Code']}")
Rails.logger.info("current_user: #{@current_user&.id}")
@current_user = User.find_by(inheritance_code: code)
end
end