修改密码完成
This commit is contained in:
@@ -24,6 +24,16 @@ export function fetchGetUserInfo() {
|
||||
return request<Api.Auth.UserInfo>({ url: '/api/auth/me' });
|
||||
}
|
||||
|
||||
// 修改密码
|
||||
export function changePasswordApi(data: { old_password: string, new_password: string, confirm_password: string }) {
|
||||
return request({
|
||||
url: '/api/auth/change-password',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Refresh token
|
||||
*
|
||||
|
||||
@@ -100,12 +100,3 @@ export function resetPasswordApi(id: number) {
|
||||
});
|
||||
}
|
||||
|
||||
// 修改用户密码
|
||||
export function changePasswordApi(params: { oldPassword: string, password: string }) {
|
||||
return request({
|
||||
url: `/api/user/change-password`,
|
||||
method: 'post',
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user