Update: 2026-05-03 22:26:56

This commit is contained in:
Hamza-Ayed
2026-05-03 22:26:56 +03:00
parent ab9625839e
commit 2732229642
3 changed files with 69 additions and 5 deletions

View File

@@ -37,8 +37,9 @@ $emailHash = hash('sha256', strtolower($data['email'])); // For fast lookup duri
// 4. Save to Database
try {
$stmt = $db->prepare("INSERT INTO users (name, email, email_hash, password_hash, role, created_at) VALUES (?, ?, ?, ?, ?, ?)");
$stmt = $db->prepare("INSERT INTO users (tenant_id, name, email, email_hash, password_hash, role, created_at) VALUES (?, ?, ?, ?, ?, ?, ?)");
$stmt->execute([
$decoded['tenant_id'],
$encryptedName,
$encryptedEmail,
$emailHash,