sbisbee/sag — pull request #89 by rgeraldporter (2014-12-15 20:23:42+00:00)
Title: Fixes for issue #88

This commit fixes a couple issues.

1) SagUserUtils->changePassword() was not working. It was recording a
new SHA1 without also updating the salt used for the new password. It
would then update the password but the user could never log in again as
the salt didn’t match the new SHA1 hash. Additionally, in CouchDB 1.3.0+,
PBKDF2 hashing is the new standard, I've added code to support changing
the passwords of users using this hash method.

2) The documentation stated that SagUserUtils->getUser() is what $doc
was expected to be like. If $doc was passed in from that method
however, it did not work. It needs the ->body property from the
returned object.