mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-14 02:54:19 +01:00
Move captcha graphics
This commit is contained in:
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
@@ -21,9 +21,9 @@ const captchas = new TTLCache<string, Point>();
|
||||
/** Puzzle captcha controller. */
|
||||
export const captchaController: AppController = async (c) => {
|
||||
const { bg, puzzle, solution } = await generateCaptcha(
|
||||
await Deno.readFile(new URL('../../../captcha/tj-holowaychuk.jpg', import.meta.url)),
|
||||
await Deno.readFile(new URL('../../../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/bg/tj-holowaychuk.jpg', import.meta.url)),
|
||||
await Deno.readFile(new URL('../../assets/captcha/puzzle-mask.png', import.meta.url)),
|
||||
await Deno.readFile(new URL('../../assets/captcha/puzzle-hole.png', import.meta.url)),
|
||||
{ w: 370, h: 400 },
|
||||
{ w: 65, h: 65 },
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user