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