Update main.py
Browse files
main.py
CHANGED
@@ -41,7 +41,7 @@ async def register_get(request: Request):
|
|
41 |
|
42 |
@app.post("/register", response_class=HTMLResponse)
|
43 |
async def register_post(request: Request, user: UserCreate, db: Session = Depends(get_db)):
|
44 |
-
registered_user =
|
45 |
return RedirectResponse("/registration_successful")
|
46 |
@app.get("/registration_successful", response_class=HTMLResponse)
|
47 |
async def registration_successful(request: Request):
|
|
|
41 |
|
42 |
@app.post("/register", response_class=HTMLResponse)
|
43 |
async def register_post(request: Request, user: UserCreate, db: Session = Depends(get_db)):
|
44 |
+
registered_user = register(user, db)
|
45 |
return RedirectResponse("/registration_successful")
|
46 |
@app.get("/registration_successful", response_class=HTMLResponse)
|
47 |
async def registration_successful(request: Request):
|