Update: 2026-05-03 22:26:56
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user