captcha: resize pieces, require nip98 auth

This commit is contained in:
Alex Gleason
2024-10-04 13:34:12 -05:00
parent 952d5e4370
commit 68c0d437ee
3 changed files with 6 additions and 6 deletions

View File

@@ -24,10 +24,10 @@ export const captchaController: AppController = async (c) => {
await Deno.readFile(new URL('../../../captcha/tj-holowaychuk.jpg', import.meta.url)),
await Deno.readFile(new URL('../../../captcha/puzzle.png', import.meta.url)),
{
cw: 300,
ch: 300,
pw: 50,
ph: 50,
cw: 370,
ch: 400,
pw: 65,
ph: 65,
alpha: 0.8,
},
);
@@ -132,7 +132,7 @@ export const captchaVerifyController: AppController = async (c) => {
return c.json({ error: 'Captcha expired' }, { status: 410 });
}
const dim = { w: 50, h: 50 };
const dim = { w: 65, h: 65 };
const point = result.data;
const success = areIntersecting(