1👍
✅
If make_password
is the one from django.contrib.auth, then you are hashing the password twice. You convert pwd
to a hash when you call that function, but then you pass it into create_user
which hashes it again. Either use the normal User.objects.create()
when creating the user, or pass the raw string “internal” to create_user
.
Source:stackexchange.com