...
|
...
|
@@ -72,9 +72,9 @@ class BackController extends WebAction { |
|
|
$data = BackData::sendCodeToEmail($email);
|
|
|
if ($data ['code'] == 200) {
|
|
|
$this->setSession('email', $email);
|
|
|
$this->redirect ('sendemail');
|
|
|
return $this->redirect ('sendemail');
|
|
|
} else {
|
|
|
$this->redirect ('index');
|
|
|
return $this->redirect ('index');
|
|
|
}
|
|
|
|
|
|
} else if (Helpers::verifyMobile($phoneNum)) { // 验证手机号
|
...
|
...
|
@@ -84,9 +84,9 @@ class BackController extends WebAction { |
|
|
$this->setSession ('mobile', $mobile );
|
|
|
$this->setSession ('area', $area );
|
|
|
$this->setSession ('verifyCode', $verifyCode );
|
|
|
$this->redirect ('verification');
|
|
|
return $this->redirect ('verification');
|
|
|
} else {
|
|
|
$this->redirect ('index');
|
|
|
return $this->redirect ('index');
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -160,7 +160,7 @@ class BackController extends WebAction { |
|
|
//验证失败
|
|
|
if(!$verifyState)
|
|
|
{
|
|
|
$this->redirect ('index');
|
|
|
return $this->redirect ('index');
|
|
|
}
|
|
|
$banner = PassportModel::getLeftBanner(PassportModel::BACK_LFFT_BANNER_CODE);
|
|
|
$data = array (
|
...
|
...
|
@@ -193,20 +193,21 @@ class BackController extends WebAction { |
|
|
$area = $info ['area'];
|
|
|
$data = BackData::modifyPasswordByMobile($mobile, $token, $password, $area);
|
|
|
if ($data ['code'] == 200) {
|
|
|
$this->redirect ( 'resetsuccess' );
|
|
|
return $this->redirect ( 'resetsuccess' );
|
|
|
}
|
|
|
} else if (isset ($info ['uid'])) { //其他方式修改密码,跳到找回密码首页
|
|
|
$this->redirect ( 'index' );
|
|
|
return $this->redirect ( 'index' );
|
|
|
}
|
|
|
} else { //新版邮箱修改接口
|
|
|
$data = BackData::modifyPasswordByEmailCode($code, $password);
|
|
|
if ($data ['code'] == 200) {
|
|
|
$this->redirect ('resetsuccess');
|
|
|
}
|
|
|
return $this->redirect ('resetsuccess');
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
// 跳转错误页面
|
|
|
$this->redirect('index');
|
|
|
return $this->redirect('index');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|