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