[fix](error-code) prompt error when MySQL client login password is incorrect #11973

This commit is contained in:
catpineapple
2022-08-23 09:11:09 +08:00
committed by GitHub
parent 05da3d947f
commit bc28b7eb4f

View File

@ -56,7 +56,7 @@ public class MysqlProto {
List<UserIdentity> currentUserIdentity = Lists.newArrayList();
if (!Env.getCurrentEnv().getAuth().checkPassword(qualifiedUser, remoteIp,
scramble, randomString, currentUserIdentity)) {
ErrorReport.report(ErrorCode.ERR_ACCESS_DENIED_ERROR, qualifiedUser, context.getRemoteIP(), usePasswd);
ErrorReport.report(ErrorCode.ERR_ACCESS_DENIED_ERROR, qualifiedUser, usePasswd);
return false;
}