From 88662c243d3b128141842d1f830b01d6b70e4960 Mon Sep 17 00:00:00 2001 From: Wen Hui Date: Tue, 18 Aug 2020 01:59:24 -0400 Subject: [PATCH] edit auth failed message (#7648) Edit auth failed message include user disabled case in hello command --- src/acl.c | 2 +- src/networking.c | 2 +- 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;