-
Notifications
You must be signed in to change notification settings - Fork 6
Example Security Data
Welcome to the node_enterprise wiki!
-
Add the api exception data in MongoDB following.
db.exceptionApi.insert({"application": "E-Commerce","module": "security","className": "Authentication","method":"LogIn"})db.exceptionApi.insert({"application": "E-Commerce","module": "membership","className": "Members","method":"Add"})
db.userLogon.createIndex( { "logOn": 1 }, { expireAfterSeconds: 120 } )
The password use bcrypt library. Look at how to assign password, the example in comment code of lab4-4 .(index.js)
db.users.insert({
"username": "apaichon@hotmail.com",
"password": "a0$f.2GR0ApNPDeaoq3C.KLkupzZKYXTREBhPFp1DF9RAR5SaPEbfYdK"
})
db.authorization.insert({
"username" : "apaichon@gmail.com",
"application" : "E-Commerce",
"module" : "membership",
"className" : "Members",
"method" : "Edit"
})