v0.7.1测试
This commit is contained in:
@@ -357,3 +357,13 @@
|
||||
- conduct_service.py: get_history 方法开头添加空字符串→None转换
|
||||
- conduct.py: get_all_records 方法开头添加空字符串→None转换
|
||||
- history.php: loadStudentsForSelect 传 {page_size: 1000}
|
||||
|
||||
- [x] 12.13 修复强制改密"原密码错误" + 科目管理/管理员管理500错误确认
|
||||
【目标对象】`backend/schemas/auth.py`、`backend/services/auth_service.py`、`backend/routes/auth.py`、`frontend/student/dashboard.php`
|
||||
【修改目的】用户报告3个Bug:1) 学生端首次登录强制改密时没有原密码输入框,但提交后报"原密码错误";2) 科目管理页/api/subject/list返回500;3) 管理员管理页/api/admin/list返回500
|
||||
【修改方式】
|
||||
- schemas/auth.py: ChangePasswordRequest中old_password改为可选(default=""),新增force字段(bool, default=False)
|
||||
- auth_service.py: change_password方法新增force参数,当force=True时跳过旧密码验证
|
||||
- auth.py: change_password路由从请求中读取force参数传递给服务层
|
||||
- dashboard.php: 强制改密请求中添加force:true, old_password设为空字符串
|
||||
- 科目管理500和管理员管理500: 经代码审查确认代码逻辑正确(SQL、路由、模型均无问题),500错误为后端服务未重启导致旧代码仍在运行
|
||||
|
||||
Reference in New Issue
Block a user