Merge pull request #3873 from ioito/bugfix/qx-dbinstance-reset-password

fix: 修复rds重置密码未正确接收参数问题
This commit is contained in:
yunion-ci-robot
2019-11-26 13:32:28 +08:00
committed by GitHub
+1 -1
View File
@@ -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()