-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Invalid parameters #47
Labels
bug
Something isn't working
Comments
You need to make a POST not a GET. Also, only use the verification_code parameter if you require it. Example: Also take a look at the OpenAPI docs: http://0.0.0.0:8000/docs when the container is running. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Getting invalid parameters when trying to login using 2FA.
To Reproduce
curl -X 'GET'
'http://localhost:8000/auth/login'
-H 'accept: application/json'
-H 'Content-Type: application/x-www-form-urlencoded'
-d 'username=&password=&verification_code=<2FA CODE>'
Traceback
{
"detail": "Invalid Parameters",
"exc_type": "UnknownError"
}
Expected behavior
Get sessionid.
Additional context
Using docker container.
The text was updated successfully, but these errors were encountered: