update 优化 涉及到用户密码的接口 均设置请求加密
This commit is contained in:
parent
f3195be732
commit
9087fad3fe
@ -24,6 +24,9 @@ export function addTenant(data: TenantForm) {
|
|||||||
return request({
|
return request({
|
||||||
url: '/system/tenant',
|
url: '/system/tenant',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
headers: {
|
||||||
|
isEncrypt: true
|
||||||
|
},
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -74,6 +74,9 @@ export const resetUserPwd = (userId: string | number, password: string) => {
|
|||||||
return request({
|
return request({
|
||||||
url: '/system/user/resetPwd',
|
url: '/system/user/resetPwd',
|
||||||
method: 'put',
|
method: 'put',
|
||||||
|
headers: {
|
||||||
|
isEncrypt: true
|
||||||
|
},
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -130,6 +133,9 @@ export const updateUserPwd = (oldPassword: string, newPassword: string) => {
|
|||||||
return request({
|
return request({
|
||||||
url: '/system/user/profile/updatePwd',
|
url: '/system/user/profile/updatePwd',
|
||||||
method: 'put',
|
method: 'put',
|
||||||
|
headers: {
|
||||||
|
isEncrypt: true
|
||||||
|
},
|
||||||
params: data
|
params: data
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user