Update tokens_controller.rb
This commit is contained in:
parent
c38afbbeb0
commit
ad7830805f
1 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,12 @@ module Api
|
||||||
create_action
|
create_action
|
||||||
respond_with_resource
|
respond_with_resource
|
||||||
end
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def current_user
|
||||||
|
token_user || doorkeeper_user || super
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue