mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 10:45:47 +08:00
Don't auto-redirect when enablePassword is false in login page.
This commit is contained in:
parent
c7a3ad901b
commit
d62a5fd7de
@ -387,7 +387,7 @@ class LoginPage extends React.Component {
|
||||
}
|
||||
|
||||
const visibleOAuthProviderItems = application.providers.filter(providerItem => this.isProviderVisible(providerItem));
|
||||
if (this.props.application === undefined && visibleOAuthProviderItems.length === 1) {
|
||||
if (this.props.application === undefined && !application.enablePassword && visibleOAuthProviderItems.length === 1) {
|
||||
Setting.goToLink(Provider.getAuthUrl(application, visibleOAuthProviderItems[0].provider, "signup"));
|
||||
return (
|
||||
<div style={{textAlign: "center"}}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user