fix change pass call api
This commit is contained in:
@@ -19,7 +19,11 @@ const ModalPassword = (props) => {
|
|||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
'Authorization': Store.getState().isLogin.access_token,
|
'Authorization': Store.getState().isLogin.access_token,
|
||||||
}
|
}
|
||||||
const result = await axios.patch(`${HOST}/api/users/${obj_id}/password`,{headers} ,{ password: form.getFieldValue('password') })
|
const result = await axios.patch(
|
||||||
|
`${HOST}/api/users/${obj_id}/password`,
|
||||||
|
{password: form.getFieldValue("password")},
|
||||||
|
{headers},
|
||||||
|
);
|
||||||
if (result.data.status === 10000) {
|
if (result.data.status === 10000) {
|
||||||
swal({
|
swal({
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
|
|||||||
Reference in New Issue
Block a user