aboutsummaryrefslogtreecommitdiff
path: root/gn3/authentication.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/authentication.py')
-rw-r--r--gn3/authentication.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gn3/authentication.py b/gn3/authentication.py
index 1ccffcc..7384df0 100644
--- a/gn3/authentication.py
+++ b/gn3/authentication.py
@@ -132,8 +132,7 @@ def get_user_info_by_key(key: str, value: str,
if key != "user_id":
for uuid, user_info in conn.hgetall("users").items():
user_info = json.loads(user_info)
- if (key in user_info and
- user_info.get(key) == value):
+ if (key in user_info and user_info.get(key) == value):
user_info["user_id"] = uuid
return user_info
elif key == "user_id":