From 2ce09a8b0c8725a386aa3682a27f36b8324c2b12 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sun, 28 Mar 2021 16:21:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=9C=A8=E7=95=8C=E9=9D=A2=E4=B8=8A?= =?UTF-8?q?=E6=98=BE=E7=A4=BASSH=E8=AE=A4=E8=AF=81=E7=9A=84=E5=AF=86?= =?UTF-8?q?=E7=A0=81=EF=BC=8C=E6=8F=90=E5=8D=87=E5=AE=89=E5=85=A8=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/web/actions/default/clusters/grants/grant.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/web/actions/default/clusters/grants/grant.go b/internal/web/actions/default/clusters/grants/grant.go index 2dc61688..0c65c593 100644 --- a/internal/web/actions/default/clusters/grants/grant.go +++ b/internal/web/actions/default/clusters/grants/grant.go @@ -5,6 +5,7 @@ import ( "github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/grants/grantutils" "github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb" "github.com/iwind/TeaGo/maps" + "strings" ) type GrantAction struct { @@ -37,7 +38,7 @@ func (this *GrantAction) RunGet(params struct { "method": grant.Method, "methodName": grantutils.FindGrantMethodName(grant.Method), "username": grant.Username, - "password": grant.Password, + "password": strings.Repeat("*", len(grant.Password)), "privateKey": grant.PrivateKey, "description": grant.Description, "su": grant.Su,