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