예제 #1
0
파일: seller.php 프로젝트: 453111208/bbc
 /**
  * @brief  企业密码执行
  *
  * @return
  */
 public function update_shop_pwd()
 {
     try {
         $seller_id = $_POST['seller_id'];
         $data = $_POST;
         shopAuth::resetPwd($seller_id, $data);
         $this->adminlog("修改企业密码[{$seller_id}:{$seller_id}]", 1);
     } catch (Exception $e) {
         $this->adminlog("修改企业密码[{$seller_id}:{$seller_id}]", 0);
         $msg = $e->getMessage();
         return $this->splash('error', null, $msg);
     }
     $msg = app::get('sysshop')->_('修改成功');
     return $this->splash('success', null, $msg);
 }
예제 #2
0
파일: list.php 프로젝트: 453111208/bbc
 public function modifyPwd()
 {
     $params['shop_id'] = $this->shopId;
     $params['seller_id'] = input::get('seller_id');
     $data = app::get('topshop')->rpcCall('account.shop.user.get', $params);
     if (!$data || $data['seller_type'] != '1') {
         $msg = '修改失败';
         return $this->splash('error', $url, $msg, true);
     }
     try {
         $setPwdData['login_password'] = input::get('login_password');
         $setPwdData['psw_confirm'] = input::get('psw_confirm');
         shopAuth::resetPwd($params['seller_id'], $setPwdData);
     } catch (\LogicException $e) {
         $msg = $e->getMessage();
         return $this->splash('error', $url, $msg, true);
     }
     $msg = '修改成功';
     $url = url::action('topshop_ctl_account_list@index');
     return $this->splash('success', $url, $msg, true);
 }