mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Use request.remote_ip instead of request.ip (#4744)
This commit is contained in:
parent
e95bdec7c5
commit
39e7a763ff
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ class User < ApplicationRecord
|
|||
def activate_session(request)
|
||||
session_activations.activate(session_id: SecureRandom.hex,
|
||||
user_agent: request.user_agent,
|
||||
ip: request.ip).session_id
|
||||
ip: request.remote_ip).session_id
|
||||
end
|
||||
|
||||
def exclusive_session(id)
|
||||
|
|
Loading…
Reference in a new issue