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)