Showing
1 changed file
with
11 additions
and
10 deletions
@@ -72,9 +72,9 @@ class BackController extends WebAction { | @@ -72,9 +72,9 @@ class BackController extends WebAction { | ||
72 | $data = BackData::sendCodeToEmail($email); | 72 | $data = BackData::sendCodeToEmail($email); |
73 | if ($data ['code'] == 200) { | 73 | if ($data ['code'] == 200) { |
74 | $this->setSession('email', $email); | 74 | $this->setSession('email', $email); |
75 | - $this->redirect ('sendemail'); | 75 | + return $this->redirect ('sendemail'); |
76 | } else { | 76 | } else { |
77 | - $this->redirect ('index'); | 77 | + return $this->redirect ('index'); |
78 | } | 78 | } |
79 | 79 | ||
80 | } else if (Helpers::verifyMobile($phoneNum)) { // 验证手机号 | 80 | } else if (Helpers::verifyMobile($phoneNum)) { // 验证手机号 |
@@ -84,9 +84,9 @@ class BackController extends WebAction { | @@ -84,9 +84,9 @@ class BackController extends WebAction { | ||
84 | $this->setSession ('mobile', $mobile ); | 84 | $this->setSession ('mobile', $mobile ); |
85 | $this->setSession ('area', $area ); | 85 | $this->setSession ('area', $area ); |
86 | $this->setSession ('verifyCode', $verifyCode ); | 86 | $this->setSession ('verifyCode', $verifyCode ); |
87 | - $this->redirect ('verification'); | 87 | + return $this->redirect ('verification'); |
88 | } else { | 88 | } else { |
89 | - $this->redirect ('index'); | 89 | + return $this->redirect ('index'); |
90 | } | 90 | } |
91 | } | 91 | } |
92 | } | 92 | } |
@@ -160,7 +160,7 @@ class BackController extends WebAction { | @@ -160,7 +160,7 @@ class BackController extends WebAction { | ||
160 | //验证失败 | 160 | //验证失败 |
161 | if(!$verifyState) | 161 | if(!$verifyState) |
162 | { | 162 | { |
163 | - $this->redirect ('index'); | 163 | + return $this->redirect ('index'); |
164 | } | 164 | } |
165 | $banner = PassportModel::getLeftBanner(PassportModel::BACK_LFFT_BANNER_CODE); | 165 | $banner = PassportModel::getLeftBanner(PassportModel::BACK_LFFT_BANNER_CODE); |
166 | $data = array ( | 166 | $data = array ( |
@@ -193,20 +193,21 @@ class BackController extends WebAction { | @@ -193,20 +193,21 @@ class BackController extends WebAction { | ||
193 | $area = $info ['area']; | 193 | $area = $info ['area']; |
194 | $data = BackData::modifyPasswordByMobile($mobile, $token, $password, $area); | 194 | $data = BackData::modifyPasswordByMobile($mobile, $token, $password, $area); |
195 | if ($data ['code'] == 200) { | 195 | if ($data ['code'] == 200) { |
196 | - $this->redirect ( 'resetsuccess' ); | 196 | + return $this->redirect ( 'resetsuccess' ); |
197 | } | 197 | } |
198 | } else if (isset ($info ['uid'])) { //其他方式修改密码,跳到找回密码首页 | 198 | } else if (isset ($info ['uid'])) { //其他方式修改密码,跳到找回密码首页 |
199 | - $this->redirect ( 'index' ); | 199 | + return $this->redirect ( 'index' ); |
200 | } | 200 | } |
201 | } else { //新版邮箱修改接口 | 201 | } else { //新版邮箱修改接口 |
202 | $data = BackData::modifyPasswordByEmailCode($code, $password); | 202 | $data = BackData::modifyPasswordByEmailCode($code, $password); |
203 | if ($data ['code'] == 200) { | 203 | if ($data ['code'] == 200) { |
204 | - $this->redirect ('resetsuccess'); | 204 | + return $this->redirect ('resetsuccess'); |
205 | } | 205 | } |
206 | } | 206 | } |
207 | + } else { | ||
208 | + // 跳转错误页面 | ||
209 | + return $this->redirect('index'); | ||
207 | } | 210 | } |
208 | - // 跳转错误页面 | ||
209 | - $this->redirect('index'); | ||
210 | } | 211 | } |
211 | 212 | ||
212 | /** | 213 | /** |
-
Please register or login to post a comment