diff --git a/src/dashboard/B4aAdminPage/B4aAdminPage.react.js b/src/dashboard/B4aAdminPage/B4aAdminPage.react.js index 137bbc7198..8953116d22 100644 --- a/src/dashboard/B4aAdminPage/B4aAdminPage.react.js +++ b/src/dashboard/B4aAdminPage/B4aAdminPage.react.js @@ -34,10 +34,7 @@ class B4aAdminPage extends DashboardView { host: '', adminURL: '', isRoleCreated: false, - adminParams: {}, - userVerified: true, - lastSuccess: '', - lastError: '' + adminParams: {} } this.legend = 'Admin App Setup' @@ -45,7 +42,6 @@ class B4aAdminPage extends DashboardView { } async componentDidMount() { - await this.checkPermission() const adminParams = B4aAdminParams({ appName: this.context.currentApp.name }) await this.setState({ adminParams }) @@ -75,26 +71,6 @@ class B4aAdminPage extends DashboardView { ); } - async resendEmail(){ - try { - await axios.get(`${EMAIL_VERIFICATION_URL}/resend`, { withCredentials: true }) - this.setState({lastSuccess: "The email has been sent!", lastError: ''}) - } catch (error){ - this.setState({lastError: "Something went wrong! Please reach us on the chat", lastSuccess: ''}) - } - setTimeout(() => { this.setState({ lastSuccess: '', lastError: ''})}, - 5000); - } - - async checkPermission(){ - let response = await axios.get(`${EMAIL_VERIFICATION_URL}/activated`, { withCredentials: true }) - if (response.data && response.data.isUserVerified){ - this.setState({userVerified: response.data.isUserVerified}) - } else { - this.setState({userVerified: false }) - } - } - async checkRole() { const { adminParams } = this.state @@ -144,16 +120,7 @@ class B4aAdminPage extends DashboardView {