Update main.py
Browse files
main.py
CHANGED
@@ -107,7 +107,7 @@ async def verify_email(verification_token: str, request: Request, db: Session =
|
|
107 |
|
108 |
# Mark the email as verified in the database
|
109 |
user.is_verified = True
|
110 |
-
user.email_verification_token = None # Optionally clear the verification token
|
111 |
db.commit()
|
112 |
|
113 |
# Handle a successful verification
|
|
|
107 |
|
108 |
# Mark the email as verified in the database
|
109 |
user.is_verified = True
|
110 |
+
#user.email_verification_token = None # Optionally clear the verification token
|
111 |
db.commit()
|
112 |
|
113 |
# Handle a successful verification
|