fix authenticate user

This commit is contained in:
Celina Lopez
2025-11-20 12:07:48 -08:00
parent 0bfc87b819
commit e6b47d62a2

View File

@@ -14,7 +14,7 @@ class ApplicationController < ActionController::Base
rescue_from ActiveRecord::RecordNotFound, with: :record_not_found
def authenticate_user!
def authenticate_user!(opts = {})
if request.headers["X-API-Key"].present?
authenticate_with_api_token!
else