i18n: captcha, reset password

This commit is contained in:
HFO4
2022-04-30 16:51:24 +08:00
parent 4fe79859a9
commit c9eefcb946
7 changed files with 42 additions and 23 deletions

View File

@ -30,7 +30,7 @@ func HashID(IDType int) gin.HandlerFunc {
func IsFunctionEnabled(key string) gin.HandlerFunc {
return func(c *gin.Context) {
if !model.IsTrueVal(model.GetSettingByName(key)) {
c.JSON(200, serializer.Err(serializer.CodeNoPermissionErr, "未开启此功能", nil))
c.JSON(200, serializer.Err(serializer.CodeFeatureNotEnabled, "This feature is not enabled", nil))
c.Abort()
return
}