code review by hf: fixes bug refs YW-1647
Showing
1 changed file
with
7 additions
and
4 deletions
@@ -17,6 +17,10 @@ class LoginController extends AbstractAction | @@ -17,6 +17,10 @@ class LoginController extends AbstractAction | ||
17 | */ | 17 | */ |
18 | public function indexAction() | 18 | public function indexAction() |
19 | { | 19 | { |
20 | + // 清除客户端 | ||
21 | + $this->setCookie('_UID', ''); | ||
22 | + $this->setCookie('_TOKEN', ''); | ||
23 | + | ||
20 | $refer = $this->get('refer'); | 24 | $refer = $this->get('refer'); |
21 | if (!empty($refer)) { | 25 | if (!empty($refer)) { |
22 | $this->setCookie('refer', $refer); | 26 | $this->setCookie('refer', $refer); |
@@ -61,7 +65,6 @@ class LoginController extends AbstractAction | @@ -61,7 +65,6 @@ class LoginController extends AbstractAction | ||
61 | $data['isPassportPage'] = true; // 模板中模块标识 | 65 | $data['isPassportPage'] = true; // 模板中模块标识 |
62 | $data['areaCode'] = '+86'; // 默认区号 | 66 | $data['areaCode'] = '+86'; // 默认区号 |
63 | $data['countrys'] = RegData::getAreasData(); // 地区信息列表 | 67 | $data['countrys'] = RegData::getAreasData(); // 地区信息列表 |
64 | - | ||
65 | // 渲染模板 | 68 | // 渲染模板 |
66 | $this->_view->display('international', $data); | 69 | $this->_view->display('international', $data); |
67 | } | 70 | } |
@@ -148,7 +151,7 @@ class LoginController extends AbstractAction | @@ -148,7 +151,7 @@ class LoginController extends AbstractAction | ||
148 | public function alipayAction() | 151 | public function alipayAction() |
149 | { | 152 | { |
150 | $this->setSession('_TOKEN', ''); | 153 | $this->setSession('_TOKEN', ''); |
151 | - | 154 | + |
152 | Factory::create('alipay')->getAuthorizeUrl(); | 155 | Factory::create('alipay')->getAuthorizeUrl(); |
153 | 156 | ||
154 | exit(); | 157 | exit(); |
@@ -160,7 +163,7 @@ class LoginController extends AbstractAction | @@ -160,7 +163,7 @@ class LoginController extends AbstractAction | ||
160 | public function qqAction() | 163 | public function qqAction() |
161 | { | 164 | { |
162 | $this->setSession('_TOKEN', ''); | 165 | $this->setSession('_TOKEN', ''); |
163 | - | 166 | + |
164 | Factory::create('qqconnect')->getAuthorizeUrl(); | 167 | Factory::create('qqconnect')->getAuthorizeUrl(); |
165 | 168 | ||
166 | exit(); | 169 | exit(); |
@@ -172,7 +175,7 @@ class LoginController extends AbstractAction | @@ -172,7 +175,7 @@ class LoginController extends AbstractAction | ||
172 | public function sinaAction() | 175 | public function sinaAction() |
173 | { | 176 | { |
174 | $this->setSession('_TOKEN', ''); | 177 | $this->setSession('_TOKEN', ''); |
175 | - | 178 | + |
176 | $this->go(Factory::create('sinaweibo')->getAuthorizeUrl()); | 179 | $this->go(Factory::create('sinaweibo')->getAuthorizeUrl()); |
177 | } | 180 | } |
178 | 181 |
-
Please register or login to post a comment