diff --git a/tapiriik/auth/__init__.py b/tapiriik/auth/__init__.py index 95e7637aa..c5edc6fd1 100644 --- a/tapiriik/auth/__init__.py +++ b/tapiriik/auth/__init__.py @@ -23,9 +23,9 @@ def GetByConnection(svcRec): return db.users.find_one({"ConnectedServices.ID": svcRec._id}) def Ensure(req): - from ipware.ip import get_real_ip + from ipware.ip import get_client_ip if req.user == None: - req.user = User.Create(creationIP=get_real_ip(req)) + req.user = User.Create(creationIP=get_client_ip(req)) User.Login(req.user, req) return req.user