Commit 157355f3 authored by difox's avatar difox

Fix EAuth

parent ec7ad38f
...@@ -95,10 +95,10 @@ class UserEAuth extends \common\components\ActiveRecordModel ...@@ -95,10 +95,10 @@ class UserEAuth extends \common\components\ActiveRecordModel
// Assign service token // Assign service token
$modelEAuth = $model->eauth ? $model->eauth : new UserEauth(); $modelEAuth = $model->eauth ? $model->eauth : new UserEauth();
$modelEAuth->user_id = $model->user_id; $modelEAuth->user_id = $model->id;
$modelEAuth->{$eauthField} = $socialProfile['id']; $modelEAuth->{$eauthField} = $socialProfile['id'];
$modelEAuth->update(false, [$eauthField]); $modelEAuth->update(false, [$eauthField]);
echo '<pre>'; die(var_dump($model)); echo '</pre>';
return $model; return $model;
} }
else { else {
......
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