diff --git a/config/config.yaml b/config/config.yaml index 9a8109a34..ee8ec13c4 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -434,7 +434,7 @@ demo: verificationCodeTemplateCode: SMS_2268101641 superCode: 666666 # second - superCodeTTL: 60 + codeTTL: 60 mail: title: "openIM" senderMail: "1765567899@qq.com" diff --git a/pkg/common/config/config.go b/pkg/common/config/config.go index f3a4611d5..b2079acf3 100644 --- a/pkg/common/config/config.go +++ b/pkg/common/config/config.go @@ -284,9 +284,9 @@ type config struct { SignName string `yaml:"signName"` VerificationCodeTemplateCode string `yaml:"verificationCodeTemplateCode"` } - SuperCode string `yaml:"superCode"` - SuperCodeTTL int `yaml:"superCodeTTL"` - Mail struct { + SuperCode string `yaml:"superCode"` + CodeTTL int `yaml:"codeTTL"` + Mail struct { Title string `yaml:"title"` SenderMail string `yaml:"senderMail"` SenderAuthorizationCode string `yaml:"senderAuthorizationCode"`