mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
ACL: automatically authenticate the nopass default user.
This commit is contained in:
parent
52e9922987
commit
35fe59935e
@ -125,7 +125,9 @@ client *createClient(int fd) {
|
||||
c->sentlen = 0;
|
||||
c->flags = 0;
|
||||
c->ctime = c->lastinteraction = server.unixtime;
|
||||
c->authenticated = 0;
|
||||
/* If the default user does not require authentication, the user is
|
||||
* directly authenticated. */
|
||||
c->authenticated = (c->user->flags & USER_FLAG_NOPASS) != 0;
|
||||
c->replstate = REPL_STATE_NONE;
|
||||
c->repl_put_online_on_ack = 0;
|
||||
c->reploff = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user