Update: 2026-05-04 00:13:56
This commit is contained in:
@@ -40,11 +40,14 @@ try {
|
||||
);
|
||||
|
||||
// 1. Create Tenant
|
||||
$encryptedTenantName = \App\Core\Encryption::encrypt($data['name']);
|
||||
$encryptedTenantEmail = \App\Core\Encryption::encrypt($data['email']);
|
||||
|
||||
$stmt = $db->prepare("INSERT INTO tenants (id, name, email, phone, status, created_at) VALUES (?, ?, ?, ?, 'active', NOW())");
|
||||
$stmt->execute([
|
||||
$tenantId,
|
||||
$data['name'],
|
||||
$data['email'],
|
||||
$encryptedTenantName,
|
||||
$encryptedTenantEmail,
|
||||
$data['phone'] ?? null
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user