Hi,
Can any one point me to code where users can change their own passwords in Django?
Thanks.
Hi,
Can any one point me to code where users can change their own passwords in Django?
Thanks.
Django comes with a user authentication system. It handles user accounts, groups, permissions and cookie-based user sessions. This document explains how things work.
How to change Django passwords
See the Changing passwords section
The code example:
from django.contrib.auth.models import User
u = User.objects.get(username__exact='john')
u.set_password('new password')
u.save()
You can also just use the django.contrib.auth.views.password_change
view in your URLconf. It uses a default form and template; supplying your own is optional.