Dear sir,
In "My account" option,we can change our password with 'sha1' algorithm:
class StandardAuthBackend(AuthBackend, ModelBackend):
def update_password(self, user, password):
salt = sha1(str(time.time())).hexdigest()[:5]
hash = sha1(salt + password)
new_password = 'sha1$%s$%s' % (salt, hash.hexdigest())
user.password = new_password
But on admin or register page, we set password with another algorithm:
django.contrib.auth.models.make_password
why there are two ways to change user's password?