mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 02:04:57 +00:00
Remove the duplicate method definition
This commit is contained in:
@@ -3,10 +3,10 @@ class ApplicationController < ActionController::Base
|
|||||||
# For APIs, you may want to use :null_session instead.
|
# For APIs, you may want to use :null_session instead.
|
||||||
protect_from_forgery with: :null_session
|
protect_from_forgery with: :null_session
|
||||||
|
|
||||||
def authenticate_device
|
# def authenticate_device
|
||||||
authenticate_with_token || render_unauthorized
|
# authenticate_with_token || render_unauthorized
|
||||||
end
|
# end
|
||||||
|
#
|
||||||
def authenticate_device
|
def authenticate_device
|
||||||
authenticate_or_request_with_http_token do |token, options|
|
authenticate_or_request_with_http_token do |token, options|
|
||||||
@device = Device.find_by(access_token: token)
|
@device = Device.find_by(access_token: token)
|
||||||
|
|||||||
Reference in New Issue
Block a user