From 140d909b1ad8730093eab7fdf578ccb44b896764 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 27 Mar 2023 20:01:35 -0400 Subject: [PATCH] how to reset matrix password --- matrix.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 matrix.md diff --git a/matrix.md b/matrix.md new file mode 100644 index 0000000..2875400 --- /dev/null +++ b/matrix.md @@ -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 +```