Authored by whb

找回密码

@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 <li class="po-re"> 9 <li class="po-re">
10 <label class="pn-label">手机号码</label> 10 <label class="pn-label">手机号码</label>
11 <span class="country-code">+{{area}}</span> 11 <span class="country-code">+{{area}}</span>
12 - <span class="phone-num">{{phoneNum}}</span> 12 + <span class="phone-num">{{mobile}}</span>
13 </li> 13 </li>
14 <li class="po-re"> 14 <li class="po-re">
15 <input id="captcha" class="input va captcha" type="text" name="captcha"> 15 <input id="captcha" class="input va captcha" type="text" name="captcha">
@@ -45,8 +45,8 @@ class BackController extends WebAction @@ -45,8 +45,8 @@ class BackController extends WebAction
45 if(Helpers::verifyEmail($phoneNum)){ //验证邮箱 45 if(Helpers::verifyEmail($phoneNum)){ //验证邮箱
46 $email = $phoneNum; 46 $email = $phoneNum;
47 $data = BackData::sendCodeToEmail($email); 47 $data = BackData::sendCodeToEmail($email);
48 - $this->setSession('email', $email);  
49 if($data['code'] == 200) { 48 if($data['code'] == 200) {
  49 + $this->setSession('email', $email);
50 $this->redirect('sendemail'); 50 $this->redirect('sendemail');
51 } 51 }
52 else { 52 else {
@@ -55,10 +55,10 @@ class BackController extends WebAction @@ -55,10 +55,10 @@ class BackController extends WebAction
55 } else if(Helpers::verifyMobile($phoneNum)) {//验证手机号 55 } else if(Helpers::verifyMobile($phoneNum)) {//验证手机号
56 $mobile = $phoneNum; 56 $mobile = $phoneNum;
57 $data = BackData::sendCodeToMobile($mobile); 57 $data = BackData::sendCodeToMobile($mobile);
  58 + if($data['code'] == 200) {
58 $this->setSession('mobile', $mobile); 59 $this->setSession('mobile', $mobile);
59 $this->setSession('area', $area); 60 $this->setSession('area', $area);
60 $this->setSession('verifyCode', $verifyCode); 61 $this->setSession('verifyCode', $verifyCode);
61 - if($data['code'] == 200) {  
62 $this->redirect('verification'); 62 $this->redirect('verification');
63 } 63 }
64 else { 64 else {