From 690741d2375714825fdc8cc535c90223507289c8 Mon Sep 17 00:00:00 2001 From: Qu Xuan Date: Mon, 25 Nov 2019 19:18:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Drds=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E6=9C=AA=E6=AD=A3=E7=A1=AE=E6=8E=A5=E6=94=B6?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/compute/models/dbinstance_accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compute/models/dbinstance_accounts.go b/pkg/compute/models/dbinstance_accounts.go index 3e85223484..7bab555c16 100644 --- a/pkg/compute/models/dbinstance_accounts.go +++ b/pkg/compute/models/dbinstance_accounts.go @@ -403,7 +403,7 @@ func (self *SDBInstanceAccount) PerformResetPassword(ctx context.Context, userCr if err != nil { return nil, err } - passwdStr, _ := query.GetString("password") + passwdStr, _ := data.GetString("password") if len(passwdStr) > 0 { if !seclib2.MeetComplxity(passwdStr) { return nil, httperrors.NewWeakPasswordError()