- Implemented the full order lifecycle, secure customer tracker, automatic acceptance emails, configurable status templates, and guest/account CRM management.
Key areas: [OrderStatusService.php](/Users/tyemeclifford/Documents/GH/fatbottomgrille/app/Services/OrderStatusService.php), [AdminController.php](/Users/tyemeclifford/Documents/GH/fatbottomgrille/app/Controllers/AdminController.php), and [Database.php](/Users/tyemeclifford/Documents/GH/fatbottomgrille/app/Core/Database.php). SQLite migration applied successfully. PHP/JS syntax, integration workflows, rendered pages, database integrity, and tracker authorization all passed. Invalid tracker tokens correctly return 403.
This commit is contained in:
@@ -154,6 +154,14 @@ final class AuthController extends BaseController
|
||||
Http::flash('error', 'Your account could not be loaded after registration.');
|
||||
Http::redirect('/login');
|
||||
}
|
||||
$this->db->execute(
|
||||
'UPDATE customers SET user_id = ?, updated_at = CURRENT_TIMESTAMP WHERE email = ?',
|
||||
[(int) $user['id'], $clean['email']]
|
||||
);
|
||||
$this->db->execute(
|
||||
'UPDATE orders SET user_id = ? WHERE user_id IS NULL AND customer_email = ?',
|
||||
[(int) $user['id'], $clean['email']]
|
||||
);
|
||||
$this->auth->login($user);
|
||||
Http::flash('success', 'Welcome, ' . $user['full_name'] . '. Your account is ready.');
|
||||
Http::redirect('/account');
|
||||
|
||||
Reference in New Issue
Block a user