feat: add folder uploads and archives with simpler account and plan forms

This commit is contained in:
canglan committed 2026-11-15 18:57:02 +08:00
1 parent 9afd7d0067
commit faaa614cee
41 files changed
+1027 -71

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ func (s *Server) adminAccount(w http.ResponseWriter, r *http.Request) {
input.Email = strings.ToLower(strings.TrimSpace(input.Email))
address, e := mail.ParseAddress(input.Email)
if input.Name == "" || len([]rune(input.Name)) > 120 || len([]rune(input.DisplayName)) < 2 || len([]rune(input.DisplayName)) > 80 || e != nil || address.Address != input.Email || len(input.Email) > 190 {
writeError(w, 422, "请检查用户名称、联系人姓名和登录邮箱")
writeError(w, 422, "请检查显示名称和登录邮箱")
return
}
err = s.store.UpdateAccount(r.Context(), id, input)