Matrix Accounts

From Irregularpedia
Jump to navigation Jump to search

https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/registering-users.md

Create Account

<syntaxhighlight lang="shell">ansible-playbook -i inventory/hosts setup.yml --extra-vars='username=drok password=changemenowplease admin=yes' --tags=register-user</syntaxhighlight>

Access Token

https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/9f5d4018c7deff00e29d9b5846b9de028f1bc084/docs/obtaining-access-tokens.md#L1

<syntaxhighlight lang="shell">curl -XPOST -d '{

   "identifier": { "type": "m.id.user", "user": "USERNAME" },
   "password": "PASSWORD",
   "type": "m.login.password",
   "device_id": "YOURDEVICEID"

}' 'https://matrix.YOURDOMAIN/_matrix/client/r0/login'</syntaxhighlight>