Where are users stored?



  • Hi. Noob question, why can't I find users created with:

    use nodebb
    db.createUser( { user: "nodebb", pwd: "password", roles: [ { role: "readWrite", db: "nodebb" }, { role: "clusterMonitor", db: "admin" } ] } )

    Command shows: Successfully added user

    I query {user:"nodebb"} in all collections of nodebb but got nothing. In nodebb database, there are three collections: objects, sessions, socket.io.


  • Global Moderator

    You created a mongodb database user, not a NodeBB user. Creating NodeBB users is more complicated.


Log in to reply
 

Suggested Topics

| |