🎨 The captcha on the auth page uses a white background Fix https://github.com/siyuan-note/siyuan/issues/8645

This commit is contained in:
Daniel 2023-06-30 09:33:04 +08:00
parent b65fc703f5
commit d94893f9a6
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 3 additions and 1 deletions

View file

@ -17,6 +17,7 @@
package model
import (
"image/color"
"net/http"
"net/url"
"os"
@ -118,6 +119,7 @@ func GetCaptcha(c *gin.Context) {
options.CharPreset = "ABCDEFGHKLMNPQRSTUVWXYZ23456789"
options.Noise = 0.5
options.CurveNumber = 0
options.BackgroundColor = color.White
})
if nil != err {
logging.LogErrorf("generates captcha failed: " + err.Error())