Skip to content

Commit

Permalink
Support multiple social_auth services
Browse files Browse the repository at this point in the history
Former-commit-id: 9f6622e09c96672cbe7ddd1ec34fc5799c82bd12
  • Loading branch information
kalletlak committed Jun 17, 2019
1 parent f0f8ab0 commit 80d5d13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/appShell/App/PortalHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default class PortalHeader extends React.Component<{ appStore:AppStore },
</div>
</Then>
<Else>
<If condition={AppConfig.serverConfig.authenticationMethod === "social_auth"}>
<If condition={AppConfig.serverConfig.authenticationMethod && AppConfig.serverConfig.authenticationMethod.includes("social_auth")}>
<SocialAuthButton appStore={this.props.appStore}/>
</If>
</Else>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/studyView/StudyViewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export default class StudyViewPage extends React.Component<IStudyViewPageProps,
<ComparisonGroupManager store={this.store} /> :
(<span>
Please log in to use the custom groups feature to save and compare sub-cohorts.
<If condition={AppConfig.serverConfig.authenticationMethod === "social_auth"}>
<If condition={AppConfig.serverConfig.authenticationMethod && AppConfig.serverConfig.authenticationMethod.includes("social_auth")}>
<div className={"text-center"} style={{padding:20}}>
<SocialAuthButton appStore={this.props.appStore}/>
</div>
Expand Down

0 comments on commit 80d5d13

Please sign in to comment.