mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
Finish /login/oauth/authorize
This commit is contained in:
@ -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>
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user