mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 The captcha on the auth page uses a white background Fix https://github.com/siyuan-note/siyuan/issues/8645
This commit is contained in:
parent
b65fc703f5
commit
d94893f9a6
2 changed files with 3 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue