diff options
author | Wen Hui <wen.hui.ware@gmail.com> | 2020-08-18 01:59:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-18 08:59:24 +0300 |
commit | 88662c243d3b128141842d1f830b01d6b70e4960 (patch) | |
tree | 8942c43381af9372222a03fcbfe32c04dee94d08 /src | |
parent | 93d87d6d4cd2aed9a45c4307b4c7b0b19a47b2e9 (diff) | |
download | redis-88662c243d3b128141842d1f830b01d6b70e4960.tar.gz |
edit auth failed message (#7648)
Edit auth failed message include user disabled case in hello command
Diffstat (limited to 'src')
-rw-r--r-- | src/acl.c | 2 | ||||
-rw-r--r-- | src/networking.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1981,7 +1981,7 @@ void authCommand(client *c) { if (ACLAuthenticateUser(c,username,password) == C_OK) { addReply(c,shared.ok); } else { - addReplyError(c,"-WRONGPASS invalid username-password pair"); + addReplyError(c,"-WRONGPASS invalid username-password pair or user is disabled."); } /* Free the "default" string object we created for the two diff --git a/src/networking.c b/src/networking.c index f0ebe4134..a6786492b 100644 --- a/src/networking.c +++ b/src/networking.c @@ -2527,7 +2527,7 @@ void helloCommand(client *c) { const char *opt = c->argv[j]->ptr; if (!strcasecmp(opt,"AUTH") && moreargs >= 2) { if (ACLAuthenticateUser(c, c->argv[j+1], c->argv[j+2]) == C_ERR) { - addReplyError(c,"-WRONGPASS invalid username-password pair"); + addReplyError(c,"-WRONGPASS invalid username-password pair or user is disabled."); return; } j += 2; |