Update main.py
Browse files
main.py
CHANGED
@@ -215,7 +215,7 @@ async def registration_successful(request: Request):
|
|
215 |
return templates.TemplateResponse("registration_successful.html", {"request": request})
|
216 |
|
217 |
|
218 |
-
@app.get("/verify
|
219 |
async def verify_email(verification_token: str, db: Session = Depends(get_db)):
|
220 |
user = get_user_by_verification_token(db, verification_token)
|
221 |
if not user:
|
|
|
215 |
return templates.TemplateResponse("registration_successful.html", {"request": request})
|
216 |
|
217 |
|
218 |
+
@app.get("/verify", response_class=HTMLResponse)
|
219 |
async def verify_email(verification_token: str, db: Session = Depends(get_db)):
|
220 |
user = get_user_by_verification_token(db, verification_token)
|
221 |
if not user:
|