diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2023-05-30 10:02:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-30 10:02:53 +0200 |
commit | f956a8c1d9172f6bbfb9f7515feacd477a0e35f5 (patch) | |
tree | 18a02759cc674eb79b3b1b1168abd3d6d5a65e54 /clientapi/routing/admin.go | |
parent | 11b557097c6745309c09b58f681080d3fcc4f9f5 (diff) |
Docs restructure (#2953)
Needs to be merged into `gh-pages` later on.
Diffstat (limited to 'clientapi/routing/admin.go')
-rw-r--r-- | clientapi/routing/admin.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clientapi/routing/admin.go b/clientapi/routing/admin.go index 8dd662a1..3d64454c 100644 --- a/clientapi/routing/admin.go +++ b/clientapi/routing/admin.go @@ -123,7 +123,8 @@ func AdminResetPassword(req *http.Request, cfg *config.ClientAPI, device *api.De } } request := struct { - Password string `json:"password"` + Password string `json:"password"` + LogoutDevices bool `json:"logout_devices"` }{} if err = json.NewDecoder(req.Body).Decode(&request); err != nil { return util.JSONResponse{ @@ -146,7 +147,7 @@ func AdminResetPassword(req *http.Request, cfg *config.ClientAPI, device *api.De Localpart: localpart, ServerName: serverName, Password: request.Password, - LogoutDevices: true, + LogoutDevices: request.LogoutDevices, } updateRes := &api.PerformPasswordUpdateResponse{} if err := userAPI.PerformPasswordUpdate(req.Context(), updateReq, updateRes); err != nil { |