Use request.remote_ip instead of request.ip (#4744)

th-downstream
nullkal 7 years ago committed by Eugen Rochko
parent 651c659fd6
commit fe417663d9

@ -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…
Cancel
Save