Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
88662c24
Unverified
Commit
88662c24
authored
Aug 18, 2020
by
Wen Hui
Committed by
GitHub
Aug 18, 2020
Browse files
edit auth failed message (#7648)
Edit auth failed message include user disabled case in hello command
parent
93d87d6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/acl.c
View file @
88662c24
...
...
@@ -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
...
...
src/networking.c
View file @
88662c24
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment