Skip to content

Commit 70455d4

Browse files
committed
feat(password): add test for validate auditor use case and change logic
1 parent dc46e3e commit 70455d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

coderd/users.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,7 @@ func (api *API) putUserPassword(rw http.ResponseWriter, r *http.Request) {
10511051
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{
10521052
Message: "Old password is required.",
10531053
})
1054+
return
10541055
}
10551056

10561057
err := userpassword.Validate(params.Password)

0 commit comments

Comments
 (0)