From cbf9f7a6e66e065c48b64db72cb5689ab73ef154 Mon Sep 17 00:00:00 2001 From: veypi Date: Sun, 3 Aug 2025 18:32:20 +0800 Subject: [PATCH] update login v:bind --- cfg/cfg.go | 2 +- ui/page/login.html | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/cfg/cfg.go b/cfg/cfg.go index 1a31546..0145e47 100644 --- a/cfg/cfg.go +++ b/cfg/cfg.go @@ -18,7 +18,7 @@ type Options struct { } var Config = &Options{ - TokenExpire: time.Second * 10, + TokenExpire: time.Second * 100, ID: "test", Key: "asdfghjklqwertyuiopzxcvbnm1234567890", DSN: "root:123456@tcp(127.0.0.1:3306)/test?charset=utf8&parseTime=True&loc=Local", diff --git a/ui/page/login.html b/ui/page/login.html index cf35da1..c44671d 100644 --- a/ui/page/login.html +++ b/ui/page/login.html @@ -284,10 +284,8 @@ 或使用您的用户名进行注册 - - + +
{{ signUpError }}
@@ -301,10 +299,8 @@ 或使用您的账户 - - + + 忘记密码?