Skip to content

Commit

Permalink
Merge pull request etcd-io#3033 from barakmich/strip_pass
Browse files Browse the repository at this point in the history
etcdhttp: Always strip password hash when returning users
  • Loading branch information
xiang90 committed Jun 23, 2015
2 parents 7f7e2cc + d5a0e3a commit ad71245
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions etcdserver/etcdhttp/client_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,7 @@ func (sh *authHandler) forUser(w http.ResponseWriter, r *http.Request, user stri
writeError(w, err)
return
}
if u.Password == "" {
newuser.Password = ""
}
newuser.Password = ""

if created {
w.WriteHeader(http.StatusCreated)
Expand Down

0 comments on commit ad71245

Please sign in to comment.