MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / fail

Function fail

telemetry-dashboard/src/index.ts:187–188  ·  view source on GitHub ↗
(error: string, status: number)

Source from the content-addressed store, hash-verified

185 const password = form.get('password');
186 const styleNonce = nonce();
187 const fail = (error: string, status: number): Response =>
188 html(renderLoginPage({ next, error, nonce: styleNonce }), { status, nonce: styleNonce });
189
190 if (!(await loginRateLimitOk(env, request))) {
191 return fail('Too many attempts. Wait a minute and try again.', 429);

Callers 1

handleLoginSubmitFunction · 0.70

Calls 2

renderLoginPageFunction · 0.90
htmlFunction · 0.85

Tested by

no test coverage detected