作者 lyh

gx

@@ -57,7 +57,7 @@ class IndexController extends BaseController @@ -57,7 +57,7 @@ class IndexController extends BaseController
57 //查询员密码是否正确 57 //查询员密码是否正确
58 $managerModel = new Manage(); 58 $managerModel = new Manage();
59 $info = $managerModel->read(['id'=>$this->manage['id']]); 59 $info = $managerModel->read(['id'=>$this->manage['id']]);
60 - if(!Hash::check($this->param['password'], $info['password'])){ 60 + if(!Hash::check($this->param['oldPassword'], $info['password'])){
61 $this->response('原密码错误',Code::USER_REGISTER_ERROE); 61 $this->response('原密码错误',Code::USER_REGISTER_ERROE);
62 } 62 }
63 if($this->param['password'] != $this->param['confirm']){ 63 if($this->param['password'] != $this->param['confirm']){