how to reset matrix password

This commit is contained in:
Paul Trowbridge 2023-03-27 20:01:35 -04:00
parent 88f960ab5d
commit 140d909b1a
1 changed files with 9 additions and 0 deletions

9
matrix.md Normal file
View File

@ -0,0 +1,9 @@
get access token to work the API:
```
curl -X POST -H "Content-Type: application/json"d '{"type": "m.login.password", "user": "paul", "password": "password}' https://matrix.hptrow.me/_matrix/client/r0/login
```
target the reset rout:
```
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer token-here -d '{"new_password": "new password}' https://matrix.hptrow.me/_synapse/admin/v1/reset_password/@tucker:matrix.hptrow.me
```