Add log

parent 445c9700
...@@ -10,7 +10,7 @@ class GoogleOAuth2Service extends \nodge\eauth\services\GoogleOAuth2Service ...@@ -10,7 +10,7 @@ class GoogleOAuth2Service extends \nodge\eauth\services\GoogleOAuth2Service
protected function fetchAttributes() protected function fetchAttributes()
{ {
$info = $this->makeSignedRequest('https://www.googleapis.com/oauth2/v1/userinfo'); $info = $this->makeSignedRequest('https://www.googleapis.com/oauth2/v1/userinfo');
\Yii::info($info, 'social');
$profile = [ $profile = [
'id' => $info['id'], 'id' => $info['id'],
'email' => $info['email'], 'email' => $info['email'],
......
...@@ -123,7 +123,6 @@ class UserEAuth extends \common\components\ActiveRecordModel ...@@ -123,7 +123,6 @@ class UserEAuth extends \common\components\ActiveRecordModel
$eauth->user_id = $model->id; $eauth->user_id = $model->id;
$eauth->{$eauthField} = $socialProfile['id']; $eauth->{$eauthField} = $socialProfile['id'];
$eauth->save(); $eauth->save();
return $model; return $model;
} }
else { else {
......
...@@ -40,7 +40,8 @@ WidgetAssetBundle::register($this); ...@@ -40,7 +40,8 @@ WidgetAssetBundle::register($this);
} }
}, },
theme: { theme: {
services: 'vkontakte,facebook,gplus,twitter,tumblr' services: 'vkontakte,facebook,gplus,twitter,tumblr',
counter: true,
}, },
content: { content: {
title: 'Школа аналитики', title: 'Школа аналитики',
......
...@@ -45,7 +45,8 @@ WidgetAssetBundle::register($this); ...@@ -45,7 +45,8 @@ WidgetAssetBundle::register($this);
} }
}, },
theme: { theme: {
services: 'vkontakte,facebook,gplus,twitter,tumblr' services: 'vkontakte,facebook,gplus,twitter,tumblr',
counter: true,
}, },
content: { content: {
title: 'Школа аналитики', title: 'Школа аналитики',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment