feature(api): store any ip used
This commit is contained in:
parent
b127f13515
commit
afb6eacf57
4 changed files with 29 additions and 0 deletions
|
@ -41,6 +41,7 @@ class API::V2::BaseController < ApplicationController
|
|||
|
||||
if @api_token.present?
|
||||
@api_token.touch(:last_v2_authenticated_at)
|
||||
@api_token.store_new_ip(request.remote_ip)
|
||||
@current_user = @api_token.administrateur.user
|
||||
Current.user = @current_user
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue