documentation fixes

This commit is contained in:
Gene S
2015-10-22 10:11:41 -07:00
parent 1b3b5bdd1f
commit e882c32266
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
# Create Tinode DB in a local RethinkDB Cluster
Compile then run from the command line. It will reset "tinode" database and fill it with some initial data.
Compile then run from the command line. It will reset "tinode" database and fill it with some initial data. Data
is loaded from the `data.json` file. The default file creates five users with user names alice, bob, carol, dave,
frank. Passwords are the same as user name with 123 appended, e.g. user `alice` has password `alice123`.
If you don't want test data to be loaded, replace `data.json` content with an empty object `{}`.

View File

@ -49,7 +49,8 @@ func gen_rethink(data *Data) {
user.CreatedAt = getCreatedTime(uu["createdAt"])
// store.Users.Create will subscribe user to !me topic but won't create a !me topic
if _, err := store.Users.Create(0, &user, uu["passhash"].(string), uu["private"]); err != nil {
if _, err := store.Users.Create(0, &user, "basic",
uu["username"].(string) + ":" + uu["passhash"].(string), uu["private"]); err != nil {
log.Fatal(err)
}