:art:解决template渲染时遇到转移字符问题
This commit is contained in:
@@ -53,6 +53,5 @@ func (c CaptchaStore) Verify(id, answer string, clear bool) bool {
|
||||
if os.Getenv("GIN_MODE") != "release" {
|
||||
return true
|
||||
}
|
||||
storeAnswer := c.Get(id, clear)
|
||||
return strings.ToUpper(answer) == strings.ToUpper(storeAnswer)
|
||||
return strings.ToUpper(answer) == strings.ToUpper(c.Get(id, clear))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user