Merge branch 'dev' of gitea.beetai.com:dungnh/Face_Classify_frontend into dev
This commit is contained in:
commit
9664de7556
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user