mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-04 13:05:21 +02:00
patch missing client for testing
This commit is contained in:
parent
098c8194f5
commit
a840cb0800
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ def get_token(
|
||||||
if "," in ip: # if there are multiple IPs, the first one is canonically the true client
|
if "," in ip: # if there are multiple IPs, the first one is canonically the true client
|
||||||
ip = str(ip.split(",")[0])
|
ip = str(ip.split(",")[0])
|
||||||
else:
|
else:
|
||||||
ip = request.client.host
|
# request.client should never be null, except sometimes during testing
|
||||||
|
ip = request.client.host if request.client else "unknown"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
user = authenticate_user(session, email, password) # type: ignore
|
user = authenticate_user(session, email, password) # type: ignore
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue