mirror of
https://github.com/czhu12/canine.git
synced 2025-12-21 10:49:49 -06:00
fix authenticate user
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user