Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Invalid username or password #54

Open
cbmartinx opened this issue May 17, 2023 · 3 comments
Open

Invalid username or password #54

cbmartinx opened this issue May 17, 2023 · 3 comments

Comments

@cbmartinx
Copy link

I've created a superuser following the instructions in the README (i.e., sudo docker-compose -f local.yml run django python manage.py createsuperuser), but every time I try to log in I get the following error: "Invalid username or password". I've checked that the superuser I created actually exists (when I try to create another with the same name it says that username is taken), and I've also created additional superusers. Regardless I keep getting the same error.

@jaisenbe58r
Copy link

I have the same problem as @cbmartinx, even creating new users with full permissions from the django admin panel. Have you been able to solve the problem? Thank you very much for your answers, thanks!

@iziang
Copy link

iziang commented Jun 14, 2023

@cbmartinx It's possibly a frontend issue. If you deploy it on a remote host other than localhost, you should update the environment variable REACT_APP_API_ROOT_URL in the frontend/.env file.

@marauder37
Copy link

marauder37 commented Jul 6, 2023

@cbmartinx @jaisenbe58r Open your browser dev tools and watch the requests that get made when you click Login. See why the XHR requests to /api/token/pair are failing. Do the OPTIONS and POST reqs both connect? What's the return code from the POST? Clicking "Login" is the first time the frontend tries to talk to Django, could be all sorts of things wrong

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants