Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
user docs have special fields, `derived_key`, `iterations`, `password_scheme` and `salt` which are calculated server side based on the `password` property. This change ignores those fields for comparison as well as the password field as long as the password has not been changed. This prevents couchdb-push to update user docs even if they have not changed. The resulting doc will have a different `salt` and `derived_key` and existing sessions will be invalid. Closes #25
- Loading branch information
Johannes J. Schmidt
committed
Dec 28, 2015
1 parent
dd5748d
commit 11be415
Showing
5 changed files
with
115 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"_id": "org.couchdb.user:couchdb-push-testuser", | ||
"type": "user", | ||
"name": "couchdb-push-testuser", | ||
"password": "secret-changed", | ||
"roles": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"_id": "org.couchdb.user:couchdb-push-testuser", | ||
"type": "user", | ||
"name": "couchdb-push-testuser", | ||
"password": "secret", | ||
"roles": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters