Authored by hf

fixes bug to home page login show status

@@ -273,6 +273,9 @@ class RegController extends AbstractAction @@ -273,6 +273,9 @@ class RegController extends AbstractAction
273 $data['data']['session'] = Helpers::syncUserSession($data['data']['uid']); 273 $data['data']['session'] = Helpers::syncUserSession($data['data']['uid']);
274 $data['data']['href'] = $refer; 274 $data['data']['href'] = $refer;
275 275
  276 + $token = Helpers::makeToken($data['data']['uid']);
  277 + $this->setCookie('_TOKEN', $token);
  278 + $this->setSession('_TOKEN', $token);
276 } while (false); 279 } while (false);
277 280
278 $this->echoJson($data); 281 $this->echoJson($data);