8000 feat: Add update user password endpoint by BrunoQuaresma · Pull Request #1310 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: Add update user password endpoint #1310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
May 6, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update coderd/users.go
Co-authored-by: Garrett Delfosse <garrett@coder.com>
  • Loading branch information
BrunoQuaresma and f0ssel authored May 5, 2022
commit 4f9f506fdd32b7d8e2f6255f8fd9857126f6579f
7 changes: 4 additions & 3 deletions coderd/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,10 @@ func (api *api) putUserSuspend(rw http.ResponseWriter, r *http.Request) {
}

func (api *api) putUserPassword(rw http.ResponseWriter, r *http.Request) {
user := httpmw.UserParam(r)

var params codersdk.UpdateUserPasswordRequest
var (
user = httpmw.UserParam(r)
params codersdk.UpdateUserPasswordRequest
)
if !httpapi.Read(rw, r, &params) {
return
}
Expand Down
0