Update main.py
Browse files
main.py
CHANGED
@@ -101,13 +101,12 @@ async def register_post(
|
|
101 |
return response
|
102 |
|
103 |
|
104 |
-
@app.
|
105 |
async def registration_successful(request: Request):
|
|
|
106 |
return templates.TemplateResponse("registration_successful.html", {"request": request})
|
107 |
|
108 |
|
109 |
-
|
110 |
-
|
111 |
@app.get("/verify/{verification_token}", response_class=HTMLResponse)
|
112 |
async def verify_email(verification_token: str, db: Session = Depends(get_db)):
|
113 |
user = get_user_by_verification_token(db, verification_token)
|
|
|
101 |
return response
|
102 |
|
103 |
|
104 |
+
@app.get("/registration_successful", response_class=HTMLResponse)
|
105 |
async def registration_successful(request: Request):
|
106 |
+
# Render the successful registration page
|
107 |
return templates.TemplateResponse("registration_successful.html", {"request": request})
|
108 |
|
109 |
|
|
|
|
|
110 |
@app.get("/verify/{verification_token}", response_class=HTMLResponse)
|
111 |
async def verify_email(verification_token: str, db: Session = Depends(get_db)):
|
112 |
user = get_user_by_verification_token(db, verification_token)
|