root-systems / dogstack

:dog: :dog: :dog: a popular-choice grab-bag framework for teams working on production web apps
https://dogstack.js.org/
25 stars 7 forks source link

[WIP] Adds account domain to example. #11

Closed pietgeursen closed 7 years ago

pietgeursen commented 7 years ago

@ahdinosaur If you're hacking on things tonight can you look at this for me. I'm stuck.

I can create an account ok. But when I try and log in I get:

error TypeError: Cannot read property 'service' of undefined at Object.checkCredentials (/home/piet/Documents/projects/dogstack/node_modules/feathers-authentication/lib/services/local.js:101:15) at Strategy.authenticate (/home/piet/Documents/projects/dogstack/node_modules/passport-local/lib/strategy.js:88:12) at attempt (/home/piet/Documents/projects/dogstack/node_modules/passport/lib/middleware/authenticate.js:348:16) at authenticate (/home/piet/Documents/projects/dogstack/node_modules/passport/lib/middleware/authenticate.js:349:7) at /home/piet/Documents/projects/dogstack/node_modules/feathers-authentication/lib/services/local.js:159:9 at Object.create (/home/piet/Documents/projects/dogstack/node_modules/feathers-authentication/lib/services/local.js:144:14) at /home/piet/Documents/projects/dogstack/examples/dogs/node_modules/feathers-hooks/lib/hooks.js:101:31 at /home/piet/Documents/projects/dogstack/examples/dogs/node_modules/feathers-hooks/lib/hooks.js:85:16 at process._tickCallback (internal/process/next_tick.js:103:7) POST /api/auth/local 500 30.647 ms - 140

Hunch it's about the app not being this in the right place or something but not sure.... Tired brain is not helping...

ahdinosaur commented 7 years ago

resolved in person and example code moved to dogstack/example