Browse Source

提交代码

tags/v1.22.7.1
ychao_1983 3 years ago
parent
commit
fcaea00817
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      routers/user/auth.go

+ 2
- 1
routers/user/auth.go View File

@@ -10,6 +10,7 @@ import (
"fmt"
"github.com/gomodule/redigo/redis"
"net/http"
"strconv"
"strings"

"code.gitea.io/gitea/modules/slideimage"
@@ -1848,7 +1849,7 @@ func SendVerifyCode(ctx *context.Context, slideImage *slideimage.SlideImage, for

}
if sendTimes >= setting.PhoneService.MaxRetryTimes {
ctx.JSON(http.StatusOK, models.BaseErrorMessage(ctx.Tr("phone.max_times", setting.PhoneService.MaxRetryTimes)))
ctx.JSON(http.StatusOK, models.BaseErrorMessage(ctx.Tr("phone.max_times", strconv.Itoa(setting.PhoneService.MaxRetryTimes))))
return

}


Loading…
Cancel
Save