正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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']){ |
-
请 注册 或 登录 后发表评论