Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2726 by q...@163.com: why there are two ways to change user's password?
http://code.google.com/p/reviewboard/issues/detail?id=2726

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?

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.

Reply via email to