public function editPasswordAction()
 {
     $this->objBase->editPasswordAction();
     //$this->tag->prependTitle('修改密码');
     //
     //$form = new UserPasswordEditForm();
     //$this->assign('form', $form);
     //
     //if (IS_POST) {
     //
     //    //验证数据
     //    if ( ! $form->isValid($this->request->getPost())) {
     //        foreach ($form->getMessages() as $message) {
     //            return $this->flash->error($message);
     //        }
     //    }
     //
     //    //验证原始密码是否正确
     //    $old_password = st_md5($this->request->getPost('old_password'), $this->user->getSalt());
     //    if ($old_password != $this->user->getPassword()) {
     //        return $this->flash->error('原始密码不正确');
     //    }
     //
     //    //新密码
     //    $rand = st_rand();
     //    $new_password = st_md5($this->request->getPost('new_password'), $rand);
     //    $data = [
     //        'password' => $new_password,
     //        'salt' => $rand
     //    ];
     //
     //    if ( ! self::$service->updateCommon($data, $this->user)) {
     //        $this->flash->error('更新数据失败');
     //    }
     //
     //    $this->redirect('/home/user/editPassword');
     //}
 }
 public function editPasswordAction()
 {
     $this->objBase->editPasswordAction();
 }