[Fixed]-Django REST Framework Login

1👍

The picture you posted shows a list of your users, right?
I’m wondering why the password is shown in clear. Normally Django does not store passwords themselves but hashes.
So maybe that’s the problem?
Did you use the User model’s set_password function when creating the user?

0👍

Make sure you are saving password correctly. Django store password as hash not in plain text format.

Example: creating a new user.

user = User.objects.create(username='testuser')
user.set_password('testpass')
user.save()

Leave a comment