diff --git a/src/modules/tpm/TPMIndexHOC.js b/src/modules/tpm/TPMIndexHOC.js index 4ec284ba0..f5d52a8e8 100644 --- a/src/modules/tpm/TPMIndexHOC.js +++ b/src/modules/tpm/TPMIndexHOC.js @@ -180,6 +180,15 @@ export function TPMIndexHOC(WrappedComponent) { }) } } + if(response.data && response.data.login){ + if(!response.data.has_gitea_user || (response.data.has_gitea_user && !response.data.is_sync_pwd)){ + this.setState({ + giteaVisible:true, + email:response.data.email, + is_sync_pwd:response.data.is_sync_pwd + }) + } + } } }).catch((error) => { console.log(error)