Gregniuki commited on
Commit
8417e1a
1 Parent(s): 4e57d31

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -91,10 +91,11 @@ async def registration_successful(request: Request):
91
  return templates.TemplateResponse("registration_successful.html", {"request": request})
92
 
93
 
 
94
  @app.get("/verify/{verification_token}", response_class=HTMLResponse)
95
  async def verify_email(verification_token: str, request: Request, db: Session = Depends(get_db)):
96
  # Perform email verification
97
- verification_result = verify_email(verification_token, db)
98
 
99
  # Handle a successful verification
100
  if "message" in verification_result:
 
91
  return templates.TemplateResponse("registration_successful.html", {"request": request})
92
 
93
 
94
+
95
  @app.get("/verify/{verification_token}", response_class=HTMLResponse)
96
  async def verify_email(verification_token: str, request: Request, db: Session = Depends(get_db)):
97
  # Perform email verification
98
+ verification_result = await verify_email(verification_token, db)
99
 
100
  # Handle a successful verification
101
  if "message" in verification_result: