summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-01-17 18:22:22 +0100
committerantirez <antirez@gmail.com>2019-01-17 18:22:22 +0100
commit636424c0ce6d162e13c4b00b01ad43bba06c580b (patch)
tree3e741edabcaee6da5d4a765502fcaf6edc045e0f
parent0526d1538beaa36567e595becf8f890e92d109aa (diff)
downloadredis-636424c0ce6d162e13c4b00b01ad43bba06c580b.tar.gz
ACL: change requirepass stop condition to use ACLs.
-rw-r--r--src/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.c b/src/server.c
index a4cd56208..541d41075 100644
--- a/src/server.c
+++ b/src/server.c
@@ -2587,7 +2587,7 @@ int processCommand(client *c) {
}
/* Check if the user is authenticated */
- if (server.requirepass &&
+ if (!(DefaultUser->flags & USER_FLAG_NOPASS) &&
!c->authenticated &&
(c->cmd->proc != authCommand || c->cmd->proc == helloCommand))
{