Update main.py
Browse files
main.py
CHANGED
@@ -64,6 +64,7 @@ async def login_post(
|
|
64 |
)
|
65 |
# Set the access_token (if desired)
|
66 |
user.token = access_token
|
|
|
67 |
# Redirect to a protected page or handle the login success as needed
|
68 |
return RedirectResponse("/protected")
|
69 |
else:
|
|
|
64 |
)
|
65 |
# Set the access_token (if desired)
|
66 |
user.token = access_token
|
67 |
+
db.commit()
|
68 |
# Redirect to a protected page or handle the login success as needed
|
69 |
return RedirectResponse("/protected")
|
70 |
else:
|