aboutsummaryrefslogtreecommitdiff
path: root/clientapi/clientapi.go
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 /clientapi/clientapi.go
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 'clientapi/clientapi.go')
-rw-r--r--clientapi/clientapi.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/clientapi/clientapi.go b/clientapi/clientapi.go
index 080d4d9f..62ffa615 100644
--- a/clientapi/clientapi.go
+++ b/clientapi/clientapi.go
@@ -57,10 +57,7 @@ func AddPublicRoutes(
}
routing.Setup(
- base.PublicClientAPIMux,
- base.PublicWellKnownAPIMux,
- base.SynapseAdminMux,
- base.DendriteAdminMux,
+ base,
cfg, rsAPI, asAPI,
userAPI, userDirectoryProvider, federation,
syncProducer, transactionsCache, fsAPI, keyAPI,