MCPcopy Create free account
hub / github.com/monkeytypegame/monkeytype / sendForgotPasswordEmail

Function sendForgotPasswordEmail

backend/src/api/controllers/user.ts:248–258  ·  view source on GitHub ↗
(
  req: MonkeyRequest<undefined, ForgotPasswordEmailRequest>,
)

Source from the content-addressed store, hash-verified

246}
247
248export async function sendForgotPasswordEmail(
249 req: MonkeyRequest<undefined, ForgotPasswordEmailRequest>,
250): Promise<MonkeyResponse> {
251 const { email, captcha } = req.body;
252 await verifyCaptcha(captcha);
253 await authSendForgotPasswordEmail(email);
254 return new MonkeyResponse(
255 "Password reset request received. If the email is valid, you will receive an email shortly.",
256 null,
257 );
258}
259
260export async function deleteUser(req: MonkeyRequest): Promise<MonkeyResponse> {
261 const { uid } = req.ctx.decodedToken;

Callers

nothing calls this directly

Calls 1

verifyCaptchaFunction · 0.70

Tested by

no test coverage detected