-
Loading Google Login ...
@@ -67,23 +64,6 @@ class MainHomePageLoginWidget extends React.Component {
);
}
- renderGoogleButton() {
- window.gapi.load('auth2', () => {
- gapi.auth2.init({client_id: '50174278643-gtvjdpm5rmkv75lf3jsp95iv77a2usgu.apps.googleusercontent.com'})
- gapi.signin2.render('google-oauth-id', {
- scope: 'email',
- width: 200,
- height: 30,
- longtitle: true,
- theme: 'dark',
- onsuccess: this.onGoogleLoginSuccess.bind(this),
- onfailure: (response) => {
- console.log(response);
- }
- })
- })
- }
-
renderPasswordRecovery() {
return (
@@ -146,12 +126,6 @@ class MainHomePageLoginWidget extends React.Component {
this.props.dispatch(SessionActions.login(formState));
}
- onGoogleLoginSuccess(googleUser) {
- let id_token = googleUser.getAuthResponse().id_token;
- console.log(id_token);
- this.props.dispatch(SessionActions.login({'googleId': id_token, 'remember': 1}));
- }
-
onForgotPasswordSubmit(formState) {
this.setState({
loadingRecover: true,
diff --git a/client/src/index.html b/client/src/index.html
index 986cb3df..10403723 100755
--- a/client/src/index.html
+++ b/client/src/index.html
@@ -16,7 +16,6 @@
-