Move captcha graphics

This commit is contained in:
Alex Gleason 2024-10-04 15:48:34 -05:00
parent 71873997e5
commit 6d09f69e26
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
4 changed files with 3 additions and 3 deletions

View file

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View file

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View file

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

View file

@ -21,9 +21,9 @@ const captchas = new TTLCache<string, Point>();
/** Puzzle captcha controller. */ /** Puzzle captcha controller. */
export const captchaController: AppController = async (c) => { export const captchaController: AppController = async (c) => {
const { bg, puzzle, solution } = await generateCaptcha( const { bg, puzzle, solution } = await generateCaptcha(
await Deno.readFile(new URL('../../../captcha/tj-holowaychuk.jpg', import.meta.url)), await Deno.readFile(new URL('../../assets/captcha/bg/tj-holowaychuk.jpg', import.meta.url)),
await Deno.readFile(new URL('../../../captcha/puzzle-mask.png', import.meta.url)), await Deno.readFile(new URL('../../assets/captcha/puzzle-mask.png', import.meta.url)),
await Deno.readFile(new URL('../../../captcha/puzzle-hole.png', import.meta.url)), await Deno.readFile(new URL('../../assets/captcha/puzzle-hole.png', import.meta.url)),
{ w: 370, h: 400 }, { w: 370, h: 400 },
{ w: 65, h: 65 }, { w: 65, h: 65 },
); );