🚀 مُصادَق: تحديث برمجي جديد 2026-05-03 02:07

This commit is contained in:
Hamza-Ayed
2026-05-03 02:07:24 +03:00
parent 8e7bd50c8a
commit 76a6957627
2 changed files with 5 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ namespace App\Modules\Companies;
use App\Services\Security\EncryptionService;
use App\Modules\Companies\CompanyModel;
use Ramsey\Uuid\Uuid;
final class CompanyService
{
@@ -16,6 +17,9 @@ final class CompanyService
public function createCompany(array $data): string
{
if (!isset($data['id'])) {
$data['id'] = Uuid::uuid4()->toString();
}
// Encrypt sensitive JoFotara credentials
if (isset($data['jofotara_client_id'])) {
$data['jofotara_client_id_encrypted'] = $this->encryption->encrypt($data['jofotara_client_id']);