feat(user): 添加用户修改密码功能
- 在前端 HomePage 组件中添加修改密码对话框 - 在 API 中添加 updatePassword 接口 - 在后端 UserController 中添加密码更新接口 - 在 UserService 中添加 updatePassword 方法 - 实现密码更新逻辑,包括旧密码验证和新密码加密
This commit is contained in:
@@ -150,3 +150,8 @@ export const toggleRegistration = (enabled) => {
|
||||
export const generateRegistrationCode = () => {
|
||||
return axiosApi.post('/system/registration/generate-code');
|
||||
};
|
||||
|
||||
// 更新密码
|
||||
export const updatePassword = (data) => {
|
||||
return axiosApi.put('/api/user/password', data);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user