togokah commited on
Commit
7c4a3d2
1 Parent(s): 861e39c

Fix check pwd

Browse files
utilities_database/user_database_utils.py CHANGED
@@ -129,7 +129,7 @@ def check_email_exists(user_log_in_database, email_forgot_passwd: str):
129
  """
130
  authorized_users_data = user_log_in_database.fetch({'e-mail': email_forgot_passwd}).items
131
  if len(authorized_users_data) == 1:
132
- return True, authorized_users_data['user_name']
133
  return False, None
134
 
135
 
 
129
  """
130
  authorized_users_data = user_log_in_database.fetch({'e-mail': email_forgot_passwd}).items
131
  if len(authorized_users_data) == 1:
132
+ return True, authorized_users_data[0]['user_name']
133
  return False, None
134
 
135