In the create method in RegisterSerializer class username=validated_data['username'].lower() is there just remove .lower() part . Due to this database is storing username in lower case and so creating problem during validation. Happy learning❤.
you should try saving this hashed password in your database where you have hashed them in serializer, so code looks like this user.set_password(validated_data['password']) user.save()
In the create method in RegisterSerializer class username=validated_data['username'].lower() is there just remove .lower() part . Due to this database is storing username in lower case and so creating problem during validation. Happy learning❤.
Check out our FREE masterclasses by leading industry experts now: bit.ly/3pLT63U
In the create method in RegisterSerializer class username=validated_data['username'].lower() is there just remove .lower() part .
Due to this database is storing username in lower case and so creating problem during validation.
Happy learning❤.
Loved this video!!
Good expalnation
Happy to hear that! 🙌🏼
in Users table in admin password remains empty. It says "Raw passwords are not stored". I cant get my token in postman.
it's my problem too . how do you solve it?
it's my problem too . how do you solve it?
I am also facing same issue
add user.save()
@@arihantjain5869 can you provide me the source code?
Even I followed you but when I try to log in it says wrong credentials
Same issue I also faced..
you should try saving this hashed password in your database where you have hashed them in serializer,
so code looks like this
user.set_password(validated_data['password'])
user.save()
In the create method in RegisterSerializer class username=validated_data['username'].lower() is there just remove .lower() part .
Due to this database is storing username in lower case and so creating problem during validation.
Happy learning❤.
can i get source code ?
Sprachey
𝘱𝘳𝘰𝘮𝘰𝘴𝘮 👌