Format code

This commit is contained in:
Pim Kunis 2021-08-30 22:55:01 +02:00
parent cf9f53e446
commit 5b3ec55f8b

View file

@ -50,7 +50,12 @@ defmodule MatrixServer.Account do
Return an multi to register a new user.
"""
@spec register(Register.t()) :: Multi.t()
def register(%Register{username: username, device_id: device_id, initial_device_display_name: initial_device_display_name, password: password}) do
def register(%Register{
username: username,
device_id: device_id,
initial_device_display_name: initial_device_display_name,
password: password
}) do
localpart = username || MatrixServer.random_string(10, ?a..?z)
account_params = %{