This commit is contained in:
tangfangzhi 2023-07-19 10:50:46 +08:00
parent 8f464bd21f
commit 4cdfd0e1e8
1 changed files with 1 additions and 1 deletions

View File

@ -620,7 +620,7 @@ static int32_t mndProcessCreateUserReq(SRpcMsg *pReq) {
goto _OVER;
}
if (createReq.user[0] == 0) {
if (createReq.user[0] == 0 || strlen(createReq.pass) >= TSDB_PASSWORD_LEN) {
terrno = TSDB_CODE_MND_INVALID_USER_FORMAT;
goto _OVER;
}