示例#1
0
文件: User.php 项目: arbi/MyCode
 public function changePassword($data)
 {
     $user_main = $this->getServiceLocator()->get('dao_user_user_manager');
     $data = (array) $data;
     $user_main_data['password'] = Helper::bCryptPassword($data['password']);
     $user_main->save($user_main_data, ['id' => $data['userId']]);
 }