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

Function authRequired

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

Source from the content-addressed store, hash-verified

108}
109
110int authRequired(client *c) {
111 /* Check if the user is authenticated. This check is skipped in case
112 * the default user is flagged as "nopass" and is active. */
113 int auth_required = (!(DefaultUser->flags & USER_FLAG_NOPASS) ||
114 (DefaultUser->flags & USER_FLAG_DISABLED)) &&
115 !c->authenticated;
116 return auth_required;
117}
118
119client *createClient(connection *conn) {
120 client *c = zmalloc(sizeof(client));

Callers 2

processCommandFunction · 0.85
processMultibulkBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected