修改登录校验和初始化

This commit is contained in:
zhangchenhao
2025-05-16 17:43:30 +08:00
parent a286500c05
commit a4bd40b08e
6 changed files with 25 additions and 24 deletions

View File

@@ -131,7 +131,7 @@ func Save(setting *Setting) error {
return nil
} else {
if reload {
s.Where("key = 'login_key'", []interface{}{}).Update(map[string]interface{}{"value": public.GenerateUUID()})
public.LoginKey = public.GenerateUUID()
}
}
return nil