diff --git a/util/messages.go b/util/messages.go index 810053671..83c58d754 100644 --- a/util/messages.go +++ b/util/messages.go @@ -53,8 +53,8 @@ func init() { message.SetString(language.English, "Callback调用失败, 异常信息: %s", "Webhook called failed! Exception: %s") // save - 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, "请在ddns-go启动后 10 分钟内完成初始化配置", "Please initialize configuration within 10 minutes after ddns-go starts") + message.SetString(language.English, "之前未设置帐号密码, 仅允许在ddns-go启动后 10 分钟内设置, 请重启ddns-go", "The username/password has not been set before, only allowed to set within 10 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") message.SetString(language.English, "数据解析失败, 请刷新页面重试", "Data parsing failed, please refresh the page and try again") diff --git a/web/login.html b/web/login.html index 202f8bddf..30ce461d1 100755 --- a/web/login.html +++ b/web/login.html @@ -129,11 +129,11 @@
Login
if ('{{.EmptyUser}}' === 'true') { showMessage({ content: i18n({ - "en": "You have not set up a user yet, just click the Login button directly", - "zh-cn": "尚未设置用户, 请直接点击登录", + "en": "You have not set up a user yet. Please click Login button directly and be sure to set up your username and password immediately after logging in.", + "zh-cn": "尚未设置用户, 请直接点击登录,登录后请立即设置用户名和密码", }), type: "info", - duration: 60000, + duration: 300000, }); } diff --git a/web/save.go b/web/save.go index d29111eb7..a4b4ec933 100755 --- a/web/save.go +++ b/web/save.go @@ -53,15 +53,15 @@ func checkAndSave(request *http.Request) string { accept := request.Header.Get("Accept-Language") conf.Lang = util.InitLogLang(accept) - // 首次设置 && 必须在服务启动的 5 分钟内 - if time.Now().Unix()-startTime > 5*60 { + // 首次设置 && 必须在服务启动的 10 分钟内 + if time.Now().Unix()-startTime > 10*60 { if firstTime { - return util.LogStr("请在ddns-go启动后 5 分钟内完成初始化配置") + return util.LogStr("请在ddns-go启动后 10 分钟内完成初始化配置") } - // 之前未设置帐号密码 && 本次设置了帐号或密码 必须在5分钟内 + // 之前未设置帐号密码 && 本次设置了帐号或密码 必须在10分钟内 if (conf.Username == "" && conf.Password == "") && (usernameNew != "" || passwordNew != "") { - return util.LogStr("之前未设置帐号密码, 仅允许在ddns-go启动后 5 分钟内设置, 请重启ddns-go") + return util.LogStr("之前未设置帐号密码, 仅允许在ddns-go启动后 10 分钟内设置, 请重启ddns-go") } }