Closed Lgofk closed 8 years ago
how du you get it work? getting the some error all the time :(
What database are you using? Are you sure that the user you're trying to login with is in there?
Too many people abused the database provided in the book, so you'll need to spin up your own either locally or on mlab.com or modulus.io.
Hi @sevilayha: I got local mongodb working and checkt the database with Robomongo. The creation of the user worked without a problem but when I try to find him like in the tutorial I always get the user not found :(
that's looks like a deja-vu for me when i followed the examples. I think was a problem with:
params.username params.password
i changed to:
body.username body.password
something like that,
On Mon, Aug 1, 2016 at 11:48 PM, FNGR2911 notifications@github.com wrote:
Hi @sevilayha https://github.com/sevilayha: I got local mongodb working and checkt the database with Robomongo. The creation of the user worked without a problem but when I try to find him like in the tutorial I always get the user not found :(
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/scotch-io/mean-machine-code/issues/39#issuecomment-236805478, or mute the thread https://github.com/notifications/unsubscribe-auth/ABHNYI1-BfvwiG3n83Z31ojrVhpEacTnks5qbto-gaJpZM4Iez4q .
First, I writhe all the code myself, than I tryed to copy it from the book but the problem doesn't go away :(
username and password are correct.
Also I found out that the findOne method returns 'null'.