Create the users on admin role
This commit is contained in:
parent
ee23980a2f
commit
c3529c3a8e
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ func main() {
|
|||
h := md5.New()
|
||||
hash := h.Sum(([]byte)(PASS_SALT + pass))
|
||||
fmt.Println(user, " - ", hash)
|
||||
err = coll.Insert(bson.M{"user": user, "pass": hash})
|
||||
err = coll.Insert(bson.M{"user": user, "pass": hash, "role": "admin"})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Reference in a new issue