Skip to content

Commit

Permalink
Merge pull request #92 from factly/fix/oidc
Browse files Browse the repository at this point in the history
fix oidc component
  • Loading branch information
shreeharsha-factly authored Nov 19, 2021
2 parents c92a8cc + 009d3fa commit 2927291
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion web/src/components/Auth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@ function Auth(props) {
<span className="title">{title}</span>
</Col>
</Row>
<Card actions={ui.oidc ? [<OIDC ui={ui} />] : []} title={props.flow} style={{ width: 400 }}>
<Card
actions={
ui?.nodes?.filter((each) => each.group === 'oidc').length > 0 ? [<OIDC ui={ui} />] : []
}
title={props.flow}
style={{ width: 400 }}
>
<Form name="auth" onFinish={withPassword}>
{ui.nodes && ui.nodes.messages ? (
<Form.Item>
Expand Down

0 comments on commit 2927291

Please sign in to comment.