mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Move captcha graphics
This commit is contained in:
parent
71873997e5
commit
6d09f69e26
4 changed files with 3 additions and 3 deletions
|
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 KiB After Width: | Height: | Size: 1 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 },
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue