mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #3033 from barakmich/strip_pass
etcdhttp: Always strip password hash when returning users
This commit is contained in:
commit
ad7124599d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user