RajaThor commited on
Commit
9fe9fea
·
verified ·
1 Parent(s): d668f45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def authenticate_user(email_or_username, password):
47
  user = auth.get_user_by_email(email_or_username + "@example.com") # Assuming the username is unique and we append a dummy domain
48
  # The user is successfully fetched, meaning the email/username and password are valid.
49
  return True, user
50
- except auth.AuthError as e:
51
  print(f"Authentication error: {str(e)}")
52
  return False, None
53
 
 
47
  user = auth.get_user_by_email(email_or_username + "@example.com") # Assuming the username is unique and we append a dummy domain
48
  # The user is successfully fetched, meaning the email/username and password are valid.
49
  return True, user
50
+ except Exception as e:
51
  print(f"Authentication error: {str(e)}")
52
  return False, None
53