Skip to content

Commit

Permalink
Merge pull request #12058 from spzala/automated-cherry-pick-of-#11818…
Browse files Browse the repository at this point in the history
…-upstream-release-3.3

Automated cherry pick of #11818
  • Loading branch information
gyuho authored Jun 25, 2020
2 parents 6992211 + 5858140 commit 2e601c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etcdserver/v3_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,10 @@ func (s *EtcdServer) Authenticate(ctx context.Context, r *pb.AuthenticateRequest
return nil, err
}

// internalReq doesn't need to have Password because the above s.AuthStore().CheckPassword() already did it.
// In addition, it will let a WAL entry not record password as a plain text.
internalReq := &pb.InternalAuthenticateRequest{
Name: r.Name,
Password: r.Password,
SimpleToken: st,
}

Expand Down

0 comments on commit 2e601c4

Please sign in to comment.