...
|
...
|
@@ -190,6 +190,7 @@ class LoginController extends AbstractAction |
|
|
|
|
|
if (isset($result['code']) && $result['code'] == 200 && !empty($result['data']['uid'])) {
|
|
|
$this->setCookie('_TOKEN', Helpers::makeToken($result['data']['uid']));
|
|
|
$this->setSession('_TOKEN', Helpers::makeToken($result['data']['uid']));
|
|
|
$this->go(Helpers::syncUserSession($result['data']['uid'], $refer));
|
|
|
} else {
|
|
|
$this->go($refer);
|
...
|
...
|
@@ -220,6 +221,7 @@ class LoginController extends AbstractAction |
|
|
|
|
|
if (isset($result['code']) && $result['code'] == 200 && !empty($result['data']['uid'])) {
|
|
|
$this->setCookie('_TOKEN', Helpers::makeToken($result['data']['uid']));
|
|
|
$this->setSession('_TOKEN', Helpers::makeToken($result['data']['uid']));
|
|
|
$this->go(Helpers::syncUserSession($result['data']['uid'], $refer));
|
|
|
} else {
|
|
|
$this->go($refer);
|
...
|
...
|
@@ -250,6 +252,7 @@ class LoginController extends AbstractAction |
|
|
|
|
|
if (isset($result['code']) && $result['code'] == 200 && !empty($result['data']['uid'])) {
|
|
|
$this->setCookie('_TOKEN', Helpers::makeToken($result['data']['uid']));
|
|
|
$this->setSession('_TOKEN', Helpers::makeToken($result['data']['uid']));
|
|
|
$this->go(Helpers::syncUserSession($result['data']['uid'], $refer));
|
|
|
} else {
|
|
|
$this->go($refer);
|
...
|
...
|
|