Riot: Difference between revisions
From Hackepedia
Jump to navigationJump to search
Created page with " == Change a user's a password == $ ssh -L 8448:localhost:8448 serveruser@matrix.server.com $ curl -XPOST -d '{"type":"m.login.password", "user":"<userId>", "password":"<..." |
(No difference)
|
Revision as of 16:07, 25 September 2019
Change a user's a password
$ ssh -L 8448:localhost:8448 serveruser@matrix.server.com
$ curl -XPOST -d '{"type":"m.login.password", "user":"<userId>", "password":"<pasword>"}' "https://localhost:8448/_matrix/client/r0/login"
get token
$ curl -XPOST -H "Authorization: Bearer <access_token>" -H "Content-Type: application/json" -d '{"new_password":"<new_password>"}' "https://localhost:8448/_matrix/client/r0/admin/reset_password/<userId>"