From 59c90ea1750d6bffa10d95f65734338e52257c32 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Tue, 5 Aug 2025 18:16:40 +0100 Subject: [PATCH] reset password payload fix --- src/component/auth/AccPWDReset.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/component/auth/AccPWDReset.jsx b/src/component/auth/AccPWDReset.jsx index 7277362..496582c 100644 --- a/src/component/auth/AccPWDReset.jsx +++ b/src/component/auth/AccPWDReset.jsx @@ -38,8 +38,8 @@ export default function AccPWDReset() { return verifyResetToken(fields) }, onSuccess: (res) => { - // console.log('res', res) - if(res.data.resultCode != '0'){ + // console.log('res', res.data) + if(res.data.resultCode != '0' || !res?.data?.pending_uid){ throw({message: res?.data?.resultDescription}) } // setUser({user:'testaccount', ...res.data}) @@ -76,8 +76,7 @@ export default function AccPWDReset() { const handleCompletePWDReset = (values) => { let reqData = { reset_token: token, - // reset_uid: "4733e96b-7031-4684-bec3-f63da4417707", - reset_uid: "", + reset_uid: user?.pending_uid, new_password: values.password, } resetPWD.mutate(reqData)