how to reset matrix password
This commit is contained in:
parent
88f960ab5d
commit
140d909b1a
9
matrix.md
Normal file
9
matrix.md
Normal 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
|
||||
```
|
Loading…
Reference in New Issue
Block a user