mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 18:54:58 +00:00
edit auth failed message (#7648)
Edit auth failed message include user disabled case in hello command
This commit is contained in:
parent
93d87d6d4c
commit
88662c243d
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user