refactor: 移除旧版单文件管理后台兼容

This commit is contained in:
2026-07-15 07:46:30 +00:00
parent 4df439b5ce
commit 0b71e8d024
17 changed files with 16 additions and 2744 deletions
-2
View File
@@ -234,8 +234,6 @@ def change_password(
body: ChangePasswordRequest,
principal: AdminPrincipal = Depends(require_permission("admin:access")),
):
if principal.auth_type == "legacy_token":
raise HTTPException(status_code=400, detail="兼容令牌登录不能修改用户密码,请使用用户名密码登录")
new_password = body.new_password.strip()
if len(new_password) < 8:
raise HTTPException(status_code=400, detail="新密码至少需要 8 个字符")