Hello everyone I am glad to see you here.
Changing passwords¶
Django does not store raw (clear text) passwords on the user model, but only a hash (see documentation of how passwords are managed for full details). Because of this, do not attempt to manipulate the password attribute of the user directly. This is why a helper function is used when creating a user.
To change a user’s password, you have several options:
manage.py change password Username offers a method of changing a user’s password from the command line. It prompts you to change the password of a given user which you must enter twice. If they both match, the new password will be changed immediately. If you do not supply a user, the command will attempt to change the password whose username matches the current system user.
References:
https://docs.djangoproject.com/en/4.1....
If you like the video please share and subscribe.*********************Follow me**********************
Linkedln: / rehmat-qadeer-577703178
GitHub: https://github.com/rehmat11872
Thanks for supporting keep watching!!!!!
Thanks for watching!!!!!!!!!!