Authored by hf

fixes bug refs YW-1515 partner login

@@ -188,6 +188,7 @@ class LoginController extends AbstractAction @@ -188,6 +188,7 @@ class LoginController extends AbstractAction
188 } 188 }
189 189
190 if ($result['code'] == 200 && !empty($result['data']['uid'])) { 190 if ($result['code'] == 200 && !empty($result['data']['uid'])) {
  191 + $this->setSession('_TOKEN', Helpers::makeToken($data['data']['uid']));
191 $this->go(Helpers::syncUserSession($result['data']['uid'], $refer)); 192 $this->go(Helpers::syncUserSession($result['data']['uid'], $refer));
192 } else { 193 } else {
193 $this->go($refer); 194 $this->go($refer);
@@ -217,6 +218,7 @@ class LoginController extends AbstractAction @@ -217,6 +218,7 @@ class LoginController extends AbstractAction
217 } 218 }
218 219
219 if ($result['code'] == 200 && !empty($result['data']['uid'])) { 220 if ($result['code'] == 200 && !empty($result['data']['uid'])) {
  221 + $this->setSession('_TOKEN', Helpers::makeToken($data['data']['uid']));
220 $this->go(Helpers::syncUserSession($result['data']['uid'], $refer)); 222 $this->go(Helpers::syncUserSession($result['data']['uid'], $refer));
221 } else { 223 } else {
222 $this->go($refer); 224 $this->go($refer);
@@ -246,6 +248,7 @@ class LoginController extends AbstractAction @@ -246,6 +248,7 @@ class LoginController extends AbstractAction
246 } 248 }
247 249
248 if ($result['code'] == 200 && !empty($result['data']['uid'])) { 250 if ($result['code'] == 200 && !empty($result['data']['uid'])) {
  251 + $this->setSession('_TOKEN', Helpers::makeToken($data['data']['uid']));
249 $this->go(Helpers::syncUserSession($result['data']['uid'], $refer)); 252 $this->go(Helpers::syncUserSession($result['data']['uid'], $refer));
250 } else { 253 } else {
251 $this->go($refer); 254 $this->go($refer);