couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <>
Subject Re: Updating a user document in _users db
Date Mon, 04 Feb 2013 23:39:39 GMT
In 1.2.0 onward;

        When a "password" field is present, save_doc() will hash the password
        and write the result to the "password_sha" field, add a "salt" field
        and delete the "password" field:


On 4 February 2013 23:28, Mark Hahn <> wrote:
> You either have to include them or use an update handler.  An update
> handler can just modify some of the fields and leave the others untouched.
> On Mon, Feb 4, 2013 at 2:49 PM, Pulkit Singhal <>wrote:
>> If I want to update a user document in the _users db but I don't attach the
>> password_sha and salt fields ... does that mean that those fields will be
>> cleared from my document and the user will go back to not having a
>> password?
>> Should I perform an update with those fields included as well?
>> I'm talking about CouchDB v1.2.0 in particular but if someone wants to
>> share info about another version, I'm listening.
>> - Pulkit

View raw message