fix: captcha uses dark high-contrast colors only

This commit is contained in:
2026-07-17 00:30:18 +08:00
parent 17bf5a611d
commit bfc63a8194

View File

@@ -11,7 +11,7 @@ router.get('/', async (req, res) => {
const captcha = svgCaptcha.create({ const captcha = svgCaptcha.create({
size: 4, size: 4,
noise: 3, noise: 3,
color: true, color: ['#1e40af','#7c3aed','#be123c','#b45309','#047857','#0f766e','#4338ca','#a21caf','#b91c1c','#3b82f6'],
background: '#f4f4f4', background: '#f4f4f4',
width: 120, width: 120,
height: 44, height: 44,