feat: remove old password requirement, fix user info display, and add password change reminder on home page
This commit is contained in:
@ -59,8 +59,8 @@ export function getMyProfile() {
|
||||
})
|
||||
}
|
||||
|
||||
// 【新增】自我修改密码(验证旧密码,无需管理员权限)
|
||||
export function changeMyPassword(data: { old_password: string; new_password: string; confirm_password: string }) {
|
||||
// 【新增】自我修改密码(无需旧密码,JWT 已证明身份)
|
||||
export function changeMyPassword(data: { new_password: string; confirm_password: string }) {
|
||||
return request({
|
||||
url: '/v1/auth/me/password',
|
||||
method: 'put',
|
||||
|
||||
Reference in New Issue
Block a user