architex/priv/repo/seeds.exs
Pim Kunis c42fc7c350 Implement client send message endpoint
Fix state res and authorization to handle missing state_keys
2021-08-31 16:32:04 +02:00

15 lines
286 B
Elixir

alias MatrixServer.{Repo, Account}
account =
Repo.insert!(%Account{
localpart: "chuck",
password_hash: Bcrypt.hash_pwd_salt("sneed")
})
account
|> Ecto.build_assoc(:devices,
device_id: "android",
display_name: "My Android",
access_token: "sneed"
)
|> Repo.insert!()