Skip to content

Commit

Permalink
Update messages.go (#1115)
Browse files Browse the repository at this point in the history
  • Loading branch information
standchan authored May 16, 2024
1 parent 11358ae commit 15e6cb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion util/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func init() {
message.SetString(language.English, "Callback调用失败, 异常信息: %s", "Webhook called failed! Exception: %s")

// save
message.SetString(language.English, "请在ddns-go启动后 5 分钟内完成首次配置", "Please complete the first configuration within 5 minutes after ddns-go starts")
message.SetString(language.English, "请在ddns-go启动后 5 分钟内完成初始化配置", "Please initialize configuration within 5 minutes after ddns-go starts")
message.SetString(language.English, "之前未设置帐号密码, 仅允许在ddns-go启动后 5 分钟内设置, 请重启ddns-go", "The username/password has not been set before, only allowed to set within 5 minutes after ddns-go starts, please restart ddns-go")
message.SetString(language.English, "必须输入登录用户名/密码", "Must enter login username/password")
message.SetString(language.English, "密码不安全!尝试使用更复杂的密码", "Password is not secure! Try using a more complex password")
Expand Down
4 changes: 2 additions & 2 deletions web/save.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ func checkAndSave(request *http.Request) string {
accept := request.Header.Get("Accept-Language")
conf.Lang = util.InitLogLang(accept)

// 首次设置 && 必需在服务启动的 5 分钟内
// 首次设置 && 必须在服务启动的 5 分钟内
if time.Now().Unix()-startTime > 5*60 {
if firstTime {
return util.LogStr("请在ddns-go启动后 5 分钟内完成首次配置")
return util.LogStr("请在ddns-go启动后 5 分钟内完成初始化配置")
}
// 之前未设置帐号密码 && 本次设置了帐号或密码 必须在5分钟内
if (conf.Username == "" && conf.Password == "") &&
Expand Down

0 comments on commit 15e6cb0

Please sign in to comment.