Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not try to create databases for $passwordReset objects #8

Open
gr2m opened this issue Dec 8, 2013 · 0 comments
Open

do not try to create databases for $passwordReset objects #8

gr2m opened this issue Dec 8, 2013 · 0 comments

Comments

@gr2m
Copy link
Contributor

gr2m commented Dec 8, 2013

Right now it tries exactly that. To reproduce

  1. Add this object to /_users
{
   "_id": "org.couchdb.user:$passwordReset/[email protected]/s7fdef2",
   "type": "user",
   "roles": [
   ],
   "password_scheme": "pbkdf2",
   "iterations": 10,
   "name": "$passwordReset/[email protected]/s7fdef2",
   "createdAt": "2013-12-06T14:20:57.331Z",
   "updatedAt": "2013-12-06T14:20:57.190Z",
   "derived_key": "76df1ca4b5ab7cba7cba56675e325e9b2030bfcc",
   "salt": "2fc93de856fb68b317029efcc00c4fd6",
   "$error": {
       "error": "not_found",
       "message": "user [email protected] could not be found"
   }
}
  1. Start hoodie
  2. You'll see the following error in the logs:
hoodie.database("user/undefined").grantReadAccess("$passwordReset", "[email protected]"): Error: not_found

Besides that, I also see hoodie.account.update: TypeError: Converting circular structure to JSON, not sure if that is related or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants