From 5c40cd04bf58ed17e52a2c3b3068971e1f1f6959 Mon Sep 17 00:00:00 2001 From: yksitu <1297650644@qq.com> Date: Fri, 13 Sep 2024 18:57:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8E=88=E6=9D=83=E5=86=85=E7=BD=AE?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=A7=A3=E9=99=A4=E5=90=8C=E5=90=8D=E5=90=8C?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E9=99=90=E5=88=B6=20#6938?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbm-services/mysql/db-priv/service/add_priv.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/dbm-services/mysql/db-priv/service/add_priv.go b/dbm-services/mysql/db-priv/service/add_priv.go index fc2e2f6d1e..cb5a5d83e0 100644 --- a/dbm-services/mysql/db-priv/service/add_priv.go +++ b/dbm-services/mysql/db-priv/service/add_priv.go @@ -202,9 +202,6 @@ func (m *PrivTaskPara) AddPriv(jsonPara string, ticket string) error { // AddPrivWithoutAccountRule 不使用账号规则模版,在mysql实例授权。此接口不被页面前端调用,为后台服务设计。不建议通过此接口授权。 func (m *AddPrivWithoutAccountRule) AddPrivWithoutAccountRule(jsonPara string, ticket string) error { var clusterType string - if m.Psw == m.User { - return errno.PasswordConsistentWithAccountName - } psw, err := EncryptPswInDb(m.Psw) if err != nil { return err