summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWen Hui <wen.hui.ware@gmail.com>2020-08-18 01:59:24 -0400
committerGitHub <noreply@github.com>2020-08-18 08:59:24 +0300
commit88662c243d3b128141842d1f830b01d6b70e4960 (patch)
tree8942c43381af9372222a03fcbfe32c04dee94d08
parent93d87d6d4cd2aed9a45c4307b4c7b0b19a47b2e9 (diff)
downloadredis-88662c243d3b128141842d1f830b01d6b70e4960.tar.gz
edit auth failed message (#7648)
Edit auth failed message include user disabled case in hello command
-rw-r--r--src/acl.c2
-rw-r--r--src/networking.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/acl.c b/src/acl.c
index e0432ba5c..987427899 100644
--- a/src/acl.c
+++ b/src/acl.c
@@ -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;