YchKhan commited on
Commit
ec16e81
1 Parent(s): 3fd07de

close parenthese

Browse files
Files changed (1) hide show
  1. users_management.py +1 -1
users_management.py CHANGED
@@ -82,7 +82,7 @@ def update_json(user, prompt, keywords):
82
 
83
  def auth_user(username, password):
84
  print('INSIDE')
85
- print(f"HASHED = {sha256(password.encode()).hexdigest() == users[username]['hashed_password']}"
86
  if username in users and sha256(password.encode()).hexdigest() == users[username]['hashed_password']:
87
  #mistral_api_key = os.environ[username]
88
  user = users.get(username)
 
82
 
83
  def auth_user(username, password):
84
  print('INSIDE')
85
+ print(f"HASHED = {sha256(password.encode()).hexdigest() == users[username]['hashed_password']}")
86
  if username in users and sha256(password.encode()).hexdigest() == users[username]['hashed_password']:
87
  #mistral_api_key = os.environ[username]
88
  user = users.get(username)