Changeset View
Changeset View
Standalone View
Standalone View
src/app/Jobs/ProcessUserCreate.php
- This file was copied to src/app/Jobs/ProcessUserVerify.php.
Show All 38 Lines | class ProcessUserCreate implements ShouldQueue | ||||
/** | /** | ||||
* Execute the job. | * Execute the job. | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
if (!$this->user->isLdapReady()) { | |||||
LDAP::createUser($this->user); | LDAP::createUser($this->user); | ||||
$this->user->status |= User::STATUS_LDAP_READY; | |||||
$this->user->save(); | |||||
} | |||||
} | } | ||||
} | } |