feat: increase password max to 256, fix i18n, and force re-login #83

- Raise password maximum length from 32 to 256 characters
- fix profileSchema to accept `t` for proper internationalization
- Invalidate user's WebUI token on password change, requiring re-login
This commit is contained in:
rustmailer
2025-12-30 11:05:07 +08:00
parent c01872284e
commit 62d956c7d6
23 changed files with 66 additions and 54 deletions
+2 -2
View File
@@ -822,7 +822,7 @@
},
"password": {
"min": "密碼至少需要 8 個字元",
"max": "密碼最多 32 個字元"
"max": "密碼最多 256 個字元"
}
}
}
@@ -1231,7 +1231,7 @@
"ip_invalid": "發現無效的 IP 地址",
"password_required": "密碼不能為空",
"password_min": "密碼長度至少為 8 個字元",
"password_max": "密碼長度不能超過 32 個字元"
"password_max": "密碼長度不能超過 256 個字元"
},
"toast": {
"updated": "使用者已更新",