Skip to content

Commit

Permalink
Merge pull request #2458 from kalletlak/fix-6217
Browse files Browse the repository at this point in the history
Support multiple social_auth services

Former-commit-id: 228b62766104dfc434924d25a541a9c88be99080
  • Loading branch information
inodb authored Jul 1, 2019
2 parents 0d41e75 + 80d5d13 commit d73b8b8
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 @@ -185,7 +185,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 d73b8b8

Please sign in to comment.