Monday, October 7, 2019

Re: Why would check_password(..) return True but authenticate(.., ..) never return user?

OK I fixed.

All my server code was correct but I was creating User objects incorrectly.

You can create User objects in such a way that they are NOT utilized
correctly by the authentication system!

I was not using the User.objects.create_user method.
Once I did that, it worked.

Chris

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fcc3e003-37e2-4312-b1f2-d2cee9aa20f6%40googlegroups.com.

No comments:

Post a Comment