public function ajaxSubmitAction()
 {
     $email = Request::getPOST('email');
     $checkCode = Request::getPOST('check-code');
     $verify = Request::getPOST('verify');
     if (empty($email) || empty($verify) || empty($checkCode)) {
         $this->renderAjax(1, '请填写信息!');
     }
     // 校验验证码
     $imgCode = Session::get('check_code');
     if (strtolower($verify) != $imgCode) {
         $this->renderAjax(2, '图片验证码错误!');
     }
     $check = UcAuthInterface::checkEmailCode(array('email' => $email, 'code' => $checkCode));
     if (false === $check) {
         $this->renderAjax(1, '邮箱验证码错误!');
     }
     // 删除email code
     UcAuthInterface::deleteEmailCode(array('email' => $email));
     // reset ticket
     $resetTicket = UcAuthInterface::makeResetTicket(array('login_name' => $email));
     $this->renderAjax(0, 'Success', array('resetTicket' => $resetTicket));
 }
 public static function checkEmailCode($params)
 {
     return UcAuthInterface::checkEmailCode($params);
 }