Changeset View
Changeset View
Standalone View
Standalone View
src/app/Jobs/User/UpdateJob.php
- This file was added.
<?php | |||||
namespace App\Jobs\User; | |||||
use App\Jobs\UserJob; | |||||
class UpdateJob extends UserJob | |||||
{ | |||||
/** | |||||
* Execute the job. | |||||
* | |||||
* @return void | |||||
*/ | |||||
public function handle() | |||||
{ | |||||
$user = $this->getUser(); | |||||
if (!$user->isLdapReady()) { | |||||
$this->delete(); | |||||
return; | |||||
} | |||||
\App\Backends\LDAP::updateUser($user); | |||||
} | |||||
} |