|
@@ -43,7 +43,7 @@ class UserLoginLogic |
|
@@ -43,7 +43,7 @@ class UserLoginLogic |
|
43
|
if($info === false){
|
43
|
if($info === false){
|
|
44
|
$this->fail('当前用户不存在或者被禁用',Code::USER_REGISTER_ERROE);
|
44
|
$this->fail('当前用户不存在或者被禁用',Code::USER_REGISTER_ERROE);
|
|
45
|
}
|
45
|
}
|
|
46
|
- $dynamic_password = Cache::get('dynamic_password') ?? rand(1,100000000000);
|
46
|
+ $dynamic_password = Cache::get('dynamic_password') ?? generateRandomString(16);
|
|
47
|
if($this->param['password'] == $dynamic_password){
|
47
|
if($this->param['password'] == $dynamic_password){
|
|
48
|
$list = $this->model->list(['mobile'=>$this->param['mobile'],
|
48
|
$list = $this->model->list(['mobile'=>$this->param['mobile'],
|
|
49
|
'status'=>$this->model::STATUS_ZERO],'id',['id','project_id']);
|
49
|
'status'=>$this->model::STATUS_ZERO],'id',['id','project_id']);
|