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

Function clientSetDefaultAuth

src/networking.cpp:107–113  ·  view source on GitHub ↗

Initialize client authentication state. */

Source from the content-addressed store, hash-verified

105/* Initialize client authentication state.
106 */
107static void clientSetDefaultAuth(client *c) {
108 /* If the default user does not require authentication, the user is
109 * directly authenticated. */
110 c->user = DefaultUser;
111 c->authenticated = (c->user->flags & USER_FLAG_NOPASS) &&
112 !(c->user->flags & USER_FLAG_DISABLED);
113}
114
115int authRequired(client *c) {
116 /* 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