Create the users on admin role

This commit is contained in:
Las Zenow 2013-08-22 13:49:52 +02:00
parent ee23980a2f
commit c3529c3a8e

View file

@ -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)
}