Skip to content

Commit

Permalink
fix: 授权内置接口解除同名同密码限制 #6938
Browse files Browse the repository at this point in the history
  • Loading branch information
yksitu authored and iSecloud committed Sep 13, 2024
1 parent cb7f60c commit 5c40cd0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions dbm-services/mysql/db-priv/service/add_priv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c40cd0

Please sign in to comment.