diff --git a/src/component/auth/AccPWDReset.jsx b/src/component/auth/AccPWDReset.jsx index a7c8427..7277362 100644 --- a/src/component/auth/AccPWDReset.jsx +++ b/src/component/auth/AccPWDReset.jsx @@ -39,9 +39,9 @@ export default function AccPWDReset() { }, onSuccess: (res) => { // console.log('res', res) - // if(res.data.resultCode != '0'){ - // throw({message: res?.data?.resultDescription}) - // } + if(res.data.resultCode != '0'){ + throw({message: res?.data?.resultDescription}) + } // setUser({user:'testaccount', ...res.data}) setUser(res.data) }, @@ -76,7 +76,8 @@ export default function AccPWDReset() { const handleCompletePWDReset = (values) => { let reqData = { reset_token: token, - reset_uid: "4733e96b-7031-4684-bec3-f63da4417707", + // reset_uid: "4733e96b-7031-4684-bec3-f63da4417707", + reset_uid: "", new_password: values.password, } resetPWD.mutate(reqData)