Implement inviting users during room creation
This commit is contained in:
parent
d4b058e739
commit
ee8c821653
3 changed files with 32 additions and 9 deletions
|
@ -13,3 +13,17 @@ account
|
|||
access_token: "sneed"
|
||||
)
|
||||
|> Repo.insert!()
|
||||
|
||||
account =
|
||||
Repo.insert!(%Account{
|
||||
localpart: "steamed",
|
||||
password_hash: Bcrypt.hash_pwd_salt("hams")
|
||||
})
|
||||
|
||||
account
|
||||
|> Ecto.build_assoc(:devices,
|
||||
id: "iPhone",
|
||||
display_name: "My iPhone",
|
||||
access_token: "hams"
|
||||
)
|
||||
|> Repo.insert!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue