From 2e4c44629f25a47c97837050452217447598dbf1 Mon Sep 17 00:00:00 2001 From: Jason Chuang Date: Mon, 13 Apr 2026 01:32:33 +0800 Subject: [PATCH] improve forgot password page --- src/pages/authentication/ForgotPassword/AuthCallback/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/authentication/ForgotPassword/AuthCallback/index.js b/src/pages/authentication/ForgotPassword/AuthCallback/index.js index a87b478..9a17543 100644 --- a/src/pages/authentication/ForgotPassword/AuthCallback/index.js +++ b/src/pages/authentication/ForgotPassword/AuthCallback/index.js @@ -69,9 +69,9 @@ const Index = () => { email: decodeURIComponent(params.email), emailVerifyHash: decodeURIComponent(params.verifyCode) } - }).then( + } ).then( (response)=>{ - if (response.status === 200 && response.data) { + if (response.status === 200 && response.data && response.data.username) { console.log(response) setUsername(response.data.username) setVerifyState(true)