2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 07:57:21 +08:00

feat: 添加密码复杂度验证

This commit is contained in:
耗子
2024-10-17 18:40:27 +08:00
parent 2112e86329
commit b36f7f3085
9 changed files with 73 additions and 11 deletions

View File

@@ -8,7 +8,7 @@ type PanelSetting struct {
WebsitePath string `json:"website_path" validate:"required"`
BackupPath string `json:"backup_path" validate:"required"`
Username string `json:"username" validate:"required"`
Password string `json:"password"`
Password string `json:"password" validate:"password"`
Email string `json:"email" validate:"required"`
Port int `json:"port" validate:"required,number,gte=1,lte=65535"`
HTTPS bool `json:"https"`