From 6880c28194840f5bce0528f761b2c1bdfef15bb6 Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Fri, 26 Mar 2021 21:57:54 +0800 Subject: [PATCH] Remove onLoggedIn(). --- web/src/App.js | 6 +++--- web/src/auth/AuthCallback.js | 1 - web/src/auth/LoginPage.js | 1 - web/src/auth/SelfLoginPage.js | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/web/src/App.js b/web/src/App.js index 0955be69..86fbc233 100644 --- a/web/src/App.js +++ b/web/src/App.js @@ -309,11 +309,11 @@ class App extends Component { - this.renderHomeIfLoggedIn()}/> + this.renderHomeIfLoggedIn()}/> this.renderHomeIfLoggedIn()}/> - this.renderHomeIfLoggedIn()}/> + this.renderHomeIfLoggedIn()}/> - this.renderLoginIfNotLoggedIn()}/> + this.renderLoginIfNotLoggedIn()}/> this.renderLoginIfNotLoggedIn()}/> this.renderLoginIfNotLoggedIn()}/> this.renderLoginIfNotLoggedIn()}/> diff --git a/web/src/auth/AuthCallback.js b/web/src/auth/AuthCallback.js index a3d7647b..c0b58a7c 100644 --- a/web/src/auth/AuthCallback.js +++ b/web/src/auth/AuthCallback.js @@ -74,7 +74,6 @@ class AuthCallback extends React.Component { if (res.status === 'ok') { const responseType = this.getResponseType(); if (responseType === "login") { - // this.props.onLoggedIn(); Util.showMessage("success", `Logged in successfully`); Util.goToLink("/"); } else if (responseType === "code") { diff --git a/web/src/auth/LoginPage.js b/web/src/auth/LoginPage.js index 547cd96a..3b58b578 100644 --- a/web/src/auth/LoginPage.js +++ b/web/src/auth/LoginPage.js @@ -88,7 +88,6 @@ class LoginPage extends React.Component { if (res.status === 'ok') { const responseType = this.state.type; if (responseType === "login") { - // this.props.onLoggedIn(); Util.showMessage("success", `Logged in successfully`); Util.goToLink("/"); } else if (responseType === "code") { diff --git a/web/src/auth/SelfLoginPage.js b/web/src/auth/SelfLoginPage.js index 78026749..d8e249d1 100644 --- a/web/src/auth/SelfLoginPage.js +++ b/web/src/auth/SelfLoginPage.js @@ -19,7 +19,7 @@ import {authConfig} from "./Auth"; class SelfLoginPage extends React.Component { render() { return ( - + ) } }