Gregniuki commited on
Commit
1b226ae
1 Parent(s): 318fca0

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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 = auth.register(user, db)
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):