|
|
|
@@ -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 |
|
|
|
|
|
|
|
} |
|
|
|
|