Changeset View
Changeset View
Standalone View
Standalone View
src/app/Jobs/User/UpdateJob.php
Show All 9 Lines | class UpdateJob extends UserJob | ||||
* Execute the job. | * Execute the job. | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
$user = $this->getUser(); | $user = $this->getUser(); | ||||
if (!$user) { | |||||
return; | |||||
} | |||||
if (!$user->isLdapReady()) { | if (!$user->isLdapReady()) { | ||||
$this->delete(); | $this->delete(); | ||||
return; | return; | ||||
} | } | ||||
\App\Backends\LDAP::updateUser($user); | \App\Backends\LDAP::updateUser($user); | ||||
} | } | ||||
} | } |