I have question with respect to MongoDB, I found similiar question on Stack but not solve my problem in whole. I try make registration and login panel using MEAN stack. Everything works good until I make authentication data with MongoDB. After correst installed MongoDB and set proper path in cmd next command mongod
My next step is add mongo
in new cmd window and I get something like this
And now I can register and login to application but if I want check users db.users.find()
database is empty, and authentication of course not working. And next I try make enable auth according to https://docs.mongodb.com/master/tutorial/enable-authentication/?_ga=1.2254896.1881814954.1489393516 and now I have no warnings in MongoDB
but now I can't register on application already because I get MongoError like this
This example is based on http://code.runnable.com/Vmi69CdKg_Eacn_d/mean-stack-user-registration-and-login-example-for-node-js-angular-js-and-authentication
Question: How make registration and show user data in MongoDB using e.g. db.users.find()
?
via V.R
No comments:
Post a Comment