Gregniuki commited on
Commit
2bec88d
1 Parent(s): 0ef3ea6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -292,7 +292,7 @@ async def register_post(
292
  # Create an access token
293
  access_token = create_access_token(data={"sub": registered_user.email})
294
  # Redirect to the protected route
295
- response = RedirectResponse(url="/login")
296
  response.set_cookie(key="access_token", value=f"Bearer {access_token}", httponly=True)
297
  return response
298
  except HTTPException as e:
 
292
  # Create an access token
293
  access_token = create_access_token(data={"sub": registered_user.email})
294
  # Redirect to the protected route
295
+ response = RedirectResponse(url="/protected")
296
  response.set_cookie(key="access_token", value=f"Bearer {access_token}", httponly=True)
297
  return response
298
  except HTTPException as e: