add: captcha
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
const svgCaptcha = require('svg-captcha');
|
const svgCaptcha = require('svg-captcha');
|
||||||
|
|
||||||
function createCaptcha() {
|
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 };
|
return { svg: captcha.data, text: captcha.text };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user