feat(auth): 添加账户解锁功能

在登录页面增加账户解锁功能,当账户被锁定后可以通过输入正确凭证解锁
后端添加/auth/unlock接口处理解锁逻辑
前端添加解锁表单和状态切换
更新API文档和CHANGELOG记录新功能
This commit is contained in:
zhang1106
2026-01-21 15:21:46 +08:00
parent 7f000a8ee2
commit de49c5ff52
9 changed files with 2933 additions and 2037 deletions
+1
View File
@@ -63,6 +63,7 @@ export const authAPI = {
checkAdmin: () => api.get('/auth/check-admin'),
register: (data) => api.post('/auth/register', data),
login: (data) => api.post('/auth/login', data),
unlock: (data) => api.post('/auth/unlock', data),
getProfile: () => api.get('/auth/profile'),
updateProfile: (data) => api.put('/auth/profile', data),
changePassword: (data) => api.put('/auth/password', data)