hoodiehq/hoodie.js — pull request #166 by gr2m (2013-11-08 22:48:31+00:00)
Title: hoodie.account.resetPasswords(email) resolves although email could not be found.

the feature works as expected, the worker does its job. But it returns an error:

```json
{
"_id": "org.couchdb.user:$passwordReset/joe@example.com/lr8onx3",
"_rev": "2-e58c496dc293dc39c89bd39a0505141a",
"type": "user",
"roles": [],
"password_scheme": "pbkdf2",
"iterations": 10,
"name": "$passwordReset/joe@example.com/lr8onx3",
"createdAt": "2013-11-08T15:53:39.863Z",
"updatedAt": "2013-11-08T15:53:39.709Z",
"derived_key": "72d8c1bcf98c6ece9789e823bfdbb5fee6d31e68",
"salt": "559642e536109adfafbe5410152c5473",
"$error": {
"error": "not_found",
"message": "user joe@example.com could not be found"
}
}
```

Nevertheless, hoodie.account.resetPasswords() resolved. Expected behaviour would be to reject with `$error`