diff --git a/public/react/src/modules/login/LoginDialog.js b/public/react/src/modules/login/LoginDialog.js index 7e072e2bf..fcb467e12 100644 --- a/public/react/src/modules/login/LoginDialog.js +++ b/public/react/src/modules/login/LoginDialog.js @@ -346,10 +346,7 @@ class LoginDialog extends Component { if(response===undefined){ return } - if(response.data.identity === null || response.data.identity === undefined){ - this.props.history.push("/interesse"); - return; - } + if(response.status===200){ if (response.data.status === 402) { window.location.href = response.data.url; @@ -359,6 +356,10 @@ class LoginDialog extends Component { description:response.data.message, }); }else{ + if(response.data.identity === null || response.data.identity === undefined){ + this.props.history.push("/interesse"); + return; + } broadcastChannelPostMessage('refreshPage') this.setState({ isRender:false