MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / authRequired

Function authRequired

src/networking.cpp:115–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115int authRequired(client *c) {
116 /* Check if the user is authenticated. This check is skipped in case
117 * the default user is flagged as "nopass" and is active. */
118 int auth_required = (!(DefaultUser->flags & USER_FLAG_NOPASS) ||
119 (DefaultUser->flags & USER_FLAG_DISABLED)) &&
120 !c->authenticated;
121 return auth_required;
122}
123
124client *createClient(connection *conn, int iel) {
125 client *c = new client;

Callers 2

processCommandFunction · 0.85
processMultibulkBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected