MCPcopy Create free account
hub / github.com/F-Stack/f-stack / clientSetDefaultAuth

Function clientSetDefaultAuth

app/redis-6.2.6/src/networking.c:102–108  ·  view source on GitHub ↗

Initialize client authentication state. */

Source from the content-addressed store, hash-verified

100/* Initialize client authentication state.
101 */
102static void clientSetDefaultAuth(client *c) {
103 /* If the default user does not require authentication, the user is
104 * directly authenticated. */
105 c->user = DefaultUser;
106 c->authenticated = (c->user->flags & USER_FLAG_NOPASS) &&
107 !(c->user->flags & USER_FLAG_DISABLED);
108}
109
110int authRequired(client *c) {
111 /* Check if the user is authenticated. This check is skipped in case

Callers 2

createClientFunction · 0.85
resetCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected