Gregniuki commited on
Commit
d90a126
1 Parent(s): b7beb58

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -46,7 +46,7 @@ async def login_post(
46
  email: str = Form(...),
47
  password: str = Form(...),
48
  db: Session = Depends(get_db),
49
- token: str = Depends(verify_token), # Check if the user has a valid token
50
  ):
51
  if token:
52
  # If the user already has a valid token, redirect to protected.html
 
46
  email: str = Form(...),
47
  password: str = Form(...),
48
  db: Session = Depends(get_db),
49
+ token: str = Depends(oauth2_scheme) # Check if the user has a valid token
50
  ):
51
  if token:
52
  # If the user already has a valid token, redirect to protected.html