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
Can't login from the project link #545
Comments
Can you login from the front page (http://IP:PORT) but can not log in from the project link? |
I have strange issues like this but not permanently... But seems like it sometimes appears if I signed in in Django Admin first... |
Yes. I can login from the front page. |
I have been updated version of doccano to [lastest code of master branch]. |
Problem and analysisThis is due to the authentication priority. In Django Rest Framework, we can specify the authentication classes in Lines 218 to 221 in 8818ab1
When we sign in to the admin page, we use If we sign in from the front page after we already have signed to the admin page, session id and csrftoken are sent to the server because they are stored in the cookies. As a result, the server tries to accept the request as a session authentication. But after v1.0.0, we can sign in to the application only using token authentication. That's why the strange behavior is observed. Quick-fix solutionComment out |
for example: http://IP:9740/projects/6
Log in with correct password
Incorrect pass msg will be show.
Your Environment
Doccano lastest code of master branch.
The text was updated successfully, but these errors were encountered: