Skip to content

Login not logging user in #803

Answered by jwag956
TheDavidFactor asked this question in Q&A
Discussion options

You must be logged in to vote

Lots of possibilities - the first thing I would do is look very carefully at the response to /login - and by look carefully - use the browser developer tools to look at the response (rather than just the rendered response). I assume you are getting a 200 response - which of course in form land doesn't mean things worked - there might be field errors. You don't say if you are using the default login form or have your own.

CSRF could be the issue - try setting SECURITY_CSRF_IGNORE_UNAUTH_ENDPOINTS=True - so you CSRF won't be checked for /login.

Make sure that in your DB the user record has active=True

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by TheDavidFactor
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants