forked from Yara724/api
Simplified captcha
This commit is contained in:
@@ -13,9 +13,9 @@ export class CaptchaService {
|
|||||||
generate(): GeneratedCaptcha {
|
generate(): GeneratedCaptcha {
|
||||||
const captcha = svgCaptcha.create({
|
const captcha = svgCaptcha.create({
|
||||||
size: 5,
|
size: 5,
|
||||||
ignoreChars: "0oO1ilI",
|
ignoreChars: "abcdefghijklmnopqrstuvwxyzACDEFGHIJKLMNOPQRSTUVWXYZ",
|
||||||
noise: 3,
|
noise: 1,
|
||||||
color: true,
|
color: false,
|
||||||
background: "#f8fafc",
|
background: "#f8fafc",
|
||||||
width: 160,
|
width: 160,
|
||||||
height: 56,
|
height: 56,
|
||||||
|
|||||||
Reference in New Issue
Block a user