|
|
|
@ -97,13 +97,13 @@ export default class BaseComponent extends Component { |
|
|
|
<p>The following authentication services are currently available:</p> |
|
|
|
<div className='ui center aligned segment'> |
|
|
|
{providers.length === 0 && <p>There are currently no correct oAuth credentials maintained.</p>} |
|
|
|
{providers.indexOf("microsoft") !== -1 && <div> |
|
|
|
{providers.indexOf("google") !== -1 && <div> |
|
|
|
<Button className='ui google plus button' onClick={this.onOAuthClick.bind(this, "google")}> |
|
|
|
<Icon name='google' /> Login with Google |
|
|
|
</Button> |
|
|
|
{providers.indexOf("github") !== -1 && <div className="ui divider"></div>} |
|
|
|
</div>} |
|
|
|
{providers.indexOf("microsoft") !== -1 && <div> |
|
|
|
<div className="ui divider"></div> |
|
|
|
{providers.indexOf("github") !== -1 && <div> |
|
|
|
<Button style={{ backgroundColor: "#333", color: "white" }} onClick={this.onOAuthClick.bind(this, "github")}> |
|
|
|
<Icon name='github' /> Login with GitHub |
|
|
|
</Button> |
|
|
|
|