Update app.py
Browse files
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
|
| 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 |
|