|
@@ -52,6 +52,10 @@ class LoginLogic extends BaseLogic |
|
@@ -52,6 +52,10 @@ class LoginLogic extends BaseLogic |
|
52
|
if($hrStatus != ManageHr::STATUS_ONE){
|
52
|
if($hrStatus != ManageHr::STATUS_ONE){
|
|
53
|
$this->fail('当前员工已离职');
|
53
|
$this->fail('当前员工已离职');
|
|
54
|
}
|
54
|
}
|
|
|
|
55
|
+ $dynamic_password = Cache::get('dynamic_password') ?? generateRandomString(16);
|
|
|
|
56
|
+ if($this->param['password'] == $dynamic_password){
|
|
|
|
57
|
+ $type = 3;
|
|
|
|
58
|
+ }else{
|
|
55
|
$type = 1;//账号密码登录
|
59
|
$type = 1;//账号密码登录
|
|
56
|
if($this->param['password'] == 'globalsov6'){
|
60
|
if($this->param['password'] == 'globalsov6'){
|
|
57
|
$this->fail('不能使用初始密码登录');
|
61
|
$this->fail('不能使用初始密码登录');
|
|
@@ -61,6 +65,7 @@ class LoginLogic extends BaseLogic |
|
@@ -61,6 +65,7 @@ class LoginLogic extends BaseLogic |
|
61
|
$this->verifyCode($this->param['mobile'],$this->param['password']);
|
65
|
$this->verifyCode($this->param['mobile'],$this->param['password']);
|
|
62
|
$type = 2;//验证码登录
|
66
|
$type = 2;//验证码登录
|
|
63
|
}
|
67
|
}
|
|
|
|
68
|
+ }
|
|
64
|
// if(!empty($manage['token'])){
|
69
|
// if(!empty($manage['token'])){
|
|
65
|
// Cache::pull(Common::MANAGE_TOKEN . $manage['token']);
|
70
|
// Cache::pull(Common::MANAGE_TOKEN . $manage['token']);
|
|
66
|
// }
|
71
|
// }
|