Skip to content

Commit 7a97c91

Browse files
authored
Merge pull request #1440 from processing/oauth-login-page
Fixes #1402 - Add Social Auth buttons to LoginView
2 parents 90195f4 + 0eb4897 commit 7a97c91

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: client/modules/User/pages/SignupView.jsx

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { reduxForm } from 'redux-form';
88
import * as UserActions from '../actions';
99
import SignupForm from '../components/SignupForm';
1010
import { validateSignup } from '../../../utils/reduxFormUtils';
11+
import SocialAuthButton from '../components/SocialAuthButton';
1112
import Nav from '../../../components/Nav';
1213

1314
const __process = (typeof global !== 'undefined' ? global : window).process;
@@ -33,6 +34,11 @@ class SignupView extends React.Component {
3334
<div className="form-container__content">
3435
<h2 className="form-container__title">Sign Up</h2>
3536
<SignupForm {...this.props} />
37+
<h2 className="form-container__divider">Or</h2>
38+
<div className="form-container__stack">
39+
<SocialAuthButton service={SocialAuthButton.services.github} />
40+
<SocialAuthButton service={SocialAuthButton.services.google} />
41+
</div>
3642
<p className="form__navigation-options">
3743
Already have an account?&nbsp;
3844
<Link className="form__login-button" to="/login">Log In</Link>

0 commit comments

Comments
 (0)