diff --git a/captcha/tj-holowaychuk.jpg b/captcha/tj-holowaychuk.jpg index f5d15601..e00526d5 100644 Binary files a/captcha/tj-holowaychuk.jpg and b/captcha/tj-holowaychuk.jpg differ diff --git a/src/app.ts b/src/app.ts index 935156c1..aa3b874f 100644 --- a/src/app.ts +++ b/src/app.ts @@ -280,7 +280,7 @@ app.post('/api/v1/ditto/names', requireSigner, nameRequestController); app.get('/api/v1/ditto/names', requireSigner, nameRequestsController); app.get('/api/v1/ditto/captcha', captchaController); -app.post('/api/v1/ditto/captcha/:id/verify', requireSigner, captchaVerifyController); +app.post('/api/v1/ditto/captcha/:id/verify', requireProof(), captchaVerifyController); app.get('/api/v1/ditto/zap_splits', getZapSplitsController); app.get('/api/v1/ditto/:id{[0-9a-f]{64}}/zap_splits', statusZapSplitsController); diff --git a/src/controllers/api/captcha.ts b/src/controllers/api/captcha.ts index eac4fe94..cf68d673 100644 --- a/src/controllers/api/captcha.ts +++ b/src/controllers/api/captcha.ts @@ -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(