I am unable to hash my password.

69 views
Skip to first unread message

Saksham Khanal

unread,
Nov 2, 2022, 10:52:32 AM11/2/22
to Django users
when I try to new register new user form the API,the saved user doesn't have it's password hashed which is creating a problem while logging in.You can see the difference between admin and new_user.To create a user model I have inherited a Abstract user class.You can also check my register serializer
Django_group.pngDjango_group1.png
Register serializer.py

Hubert Kanyamahanga

unread,
Nov 2, 2022, 11:27:54 AM11/2/22
to django...@googlegroups.com
Hi  Saksham, please let us see your user model.py and views.py.

On Wed, Nov 2, 2022 at 2:52 PM Saksham Khanal <saksham....@gmail.com> wrote:
when I try to new register new user form the API,the saved user doesn't have it's password hashed which is creating a problem while logging in.You can see the difference between admin and new_user.To create a user model I have inherited a Abstract user class.You can also check my register serializer
Django_group.pngDjango_group1.png

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d9adde23-46cd-40bf-babc-ced3d4b9d9ban%40googlegroups.com.

Desh Deepak

unread,
Nov 2, 2022, 1:55:02 PM11/2/22
to django...@googlegroups.com
Use set_password while saving password.

Saksham Khanal

unread,
Nov 3, 2022, 2:36:13 AM11/3/22
to Django users
Here you go
views.py
models.py

subin

unread,
Nov 3, 2022, 3:19:14 PM11/3/22
to django...@googlegroups.com
I will look forward to meeting you on July 11

subin

unread,
Nov 3, 2022, 3:25:13 PM11/3/22
to django...@googlegroups.com
Please let me know if you need to reschedule.

subin

unread,
Nov 3, 2022, 3:40:59 PM11/3/22
to django...@googlegroups.com
Sorry it took me so long to get back to you.

subin

unread,
Nov 3, 2022, 3:42:14 PM11/3/22
to django...@googlegroups.com
Kindly notify me should you need any other information.

On Wed, Nov 2, 2022 at 3:52 PM Saksham Khanal <saksham....@gmail.com> wrote:
when I try to new register new user form the API,the saved user doesn't have it's password hashed which is creating a problem while logging in.You can see the difference between admin and new_user.To create a user model I have inherited a Abstract user class.You can also check my register serializer
Django_group.pngDjango_group1.png

--

ritik sahoo

unread,
Nov 3, 2022, 10:32:16 PM11/3/22
to django...@googlegroups.com
your super_staff is not active (blank=True)

Eshwar pandu

unread,
Feb 15, 2023, 9:48:02 PM2/15/23
to django...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages