add: captcha

This commit is contained in:
2025-10-01 10:16:38 +07:00
parent c0aca9ea87
commit 4bd50c7a4c

View File

@@ -1,7 +1,7 @@
const svgCaptcha = require('svg-captcha');
function createCaptcha() {
const captcha = svgCaptcha.create({ size: 5, noise: 2, color: true });
const captcha = svgCaptcha.create({ size: 5, noise: 7, color: true });
return { svg: captcha.data, text: captcha.text };
}