mirror of
https://github.com/tinode/chat.git
synced 2025-03-14 10:05:07 +00:00
documentation fixes
This commit is contained in:
@ -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 `{}`.
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user