hey u can use make_password to hash it On Thu, 3 Nov 2022 at 12:07, Saksham Khanal <[email protected]> wrote:
> Here you go > On Wednesday, 2 November 2022 at 9:12:54 pm UTC+5:45 [email protected] > wrote: > >> Hi Saksham, please let us see your user model.py and views.py. >> >> On Wed, Nov 2, 2022 at 2:52 PM Saksham Khanal <[email protected]> >> 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 >>> [image: Django_group.png][image: Django_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 [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/d9adde23-46cd-40bf-babc-ced3d4b9d9ban%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/d9adde23-46cd-40bf-babc-ced3d4b9d9ban%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/a358b0a3-b544-4cc5-98fa-394468b662e2n%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/a358b0a3-b544-4cc5-98fa-394468b662e2n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/django-users/CAE3tgXtv-2An0LjeT%2BvGeVMEk4Td3eCyVwr3icJiF6DtJoDnBA%40mail.gmail.com.

