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:
B.
On 4 February 2013 23:28, Mark Hahn <[email protected]> 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 <[email protected]>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
>>