Feat/implement-refresh-tokens (#9233)
This commit is contained in:
parent
dbfbc56de7
commit
f73751843f
10 changed files with 123 additions and 38 deletions
|
|
@ -162,7 +162,7 @@ def generate_string(n):
|
|||
return result
|
||||
|
||||
|
||||
def get_remote_ip(request) -> str:
|
||||
def extract_remote_ip(request) -> str:
|
||||
if request.headers.get("CF-Connecting-IP"):
|
||||
return request.headers.get("Cf-Connecting-Ip")
|
||||
elif request.headers.getlist("X-Forwarded-For"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue