Filter github providers.

This commit is contained in:
Yang Luo
2021-05-14 15:55:50 +08:00
parent fce4efcb84
commit 9346587ca6
4 changed files with 22 additions and 5 deletions

View File

@ -316,7 +316,7 @@ class UserEditPage extends React.Component {
<Col span={22} >
<div style={{marginBottom: 20}}>
{
this.state.providers.map((provider, index) => this.renderIdp(provider))
this.state.providers.filter(provider => Setting.isProviderVisible(provider)).map((provider, index) => this.renderIdp(provider))
}
</div>
</Col>