Clean up captchaController

This commit is contained in:
Alex Gleason 2025-02-26 15:10:41 -06:00
parent a2aaa55b89
commit 4b55acb796
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -10,6 +10,11 @@ interface Point {
y: number;
}
const pointSchema: z.ZodType<Point> = z.object({
x: z.number(),
y: z.number(),
});
const captchas = new TTLCache<string, Point>();
const imagesAsync = getCaptchaImages();
@ -42,11 +47,6 @@ export const captchaController: AppController = async (c) => {
});
};
const pointSchema = z.object({
x: z.number(),
y: z.number(),
});
/** Verify the captcha solution and sign an event in the database. */
export const captchaVerifyController: AppController = async (c) => {
const { user } = c.var;