aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2022-12-22 11:54:03 +0100
committerGitHub <noreply@github.com>2022-12-22 11:54:03 +0100
commitd1d2d16738a248846ea4367fe2b33485d56db6cd (patch)
tree32045e75867a11e24045890ac20fba8c62515fb2 /docs
parentbeea2432e6144a98370138f8d3f6334c19a044bb (diff)
Fix reset password endpoint (#2921)
Fixes the admin password reset endpoint. It was using a wrong variable, so could not detect the user. Adds some more checks to validate we can actually change the password.
Diffstat (limited to 'docs')
-rw-r--r--docs/administration/4_adminapi.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/administration/4_adminapi.md b/docs/administration/4_adminapi.md
index 56e19a8b..c521cbc9 100644
--- a/docs/administration/4_adminapi.md
+++ b/docs/administration/4_adminapi.md
@@ -44,7 +44,9 @@ This endpoint will instruct Dendrite to part the given local `userID` in the URL
all rooms which they are currently joined. A JSON body will be returned containing
the room IDs of all affected rooms.
-## POST `/_dendrite/admin/resetPassword/{localpart}`
+## POST `/_dendrite/admin/resetPassword/{userID}`
+
+Reset the password of a local user.
Request body format:
@@ -54,9 +56,6 @@ Request body format:
}
```
-Reset the password of a local user. The `localpart` is the username only, i.e. if
-the full user ID is `@alice:domain.com` then the local part is `alice`.
-
## GET `/_dendrite/admin/fulltext/reindex`
This endpoint instructs Dendrite to reindex all searchable events (`m.room.message`, `m.room.topic` and `m.room.name`). An empty JSON body will be returned immediately.