Update turnstile-check.go

This commit is contained in:
analogpvt
2023-05-19 23:18:18 +05:30
committed by GitHub
parent f86b9139f3
commit c19ac576d9

View File

@@ -26,7 +26,7 @@ func TurnstileCheck() gin.HandlerFunc {
if response == "" {
c.JSON(http.StatusOK, gin.H{
"success": false,
"message": "Turnstile token 为空",
"message": "Turnstile token is empty",
})
c.Abort()
return
@@ -60,7 +60,7 @@ func TurnstileCheck() gin.HandlerFunc {
if !res.Success {
c.JSON(http.StatusOK, gin.H{
"success": false,
"message": "Turnstile 校验失败,请刷新重试",
"message": "Turnstile Verification failed, please refresh and try again.",
})
c.Abort()
return
@@ -69,7 +69,7 @@ func TurnstileCheck() gin.HandlerFunc {
err = session.Save()
if err != nil {
c.JSON(http.StatusOK, gin.H{
"message": "无法保存会话信息,请重试",
"message": "Unable to save session information, please try again.",
"success": false,
})
return