Finish /login/oauth/authorize

This commit is contained in:
Yang Luo
2021-03-20 22:34:22 +08:00
parent f89f454e0e
commit 808e6c6283
9 changed files with 22 additions and 26 deletions

View File

@ -327,14 +327,14 @@ class App extends Component {
}
isDoorPages() {
return window.location.pathname.startsWith('/login/oauth');
return window.location.pathname.startsWith("/login/oauth/authorize");
}
render() {
if (this.isDoorPages()) {
return (
<Switch>
<Route exact path="/login/oauth" render={(props) => this.renderLoginIfNotLoggedIn(<Face type={"code"} {...props} />)}/>
<Route exact path="/login/oauth/authorize" render={(props) => this.renderLoginIfNotLoggedIn(<Face type={"code"} {...props} />)}/>
</Switch>
)
}