From 5b217956e922211af790fc3fc16d1e15e850ae5a Mon Sep 17 00:00:00 2001 From: Ty Clifford Date: Wed, 10 Jun 2026 22:31:33 -0400 Subject: [PATCH] - Administrator email 2FA is now explicitly disabled. Database value: two_factor_enabled = 0 Removed outstanding administrator verification codes Seeded administrator explicitly defaults to 0 Confirmed fresh login routes directly to /admin, not /verify --- app/Controllers/AuthController.php | 5 +++-- app/Core/Database.php | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/Controllers/AuthController.php b/app/Controllers/AuthController.php index 4b1e4f6..5846105 100644 --- a/app/Controllers/AuthController.php +++ b/app/Controllers/AuthController.php @@ -135,8 +135,9 @@ final class AuthController extends BaseController $this->db->execute( 'INSERT INTO users - (email, password_hash, full_name, phone, street_address, city, state, postal_code, newsletter_opt_in) - VALUES (?, ?, ?, ?, ?, ?, ?, ?, 1)', + (email, password_hash, full_name, phone, street_address, city, state, postal_code, + newsletter_opt_in, two_factor_enabled) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, 1, 0)', [ $clean['email'], password_hash((string) $input['password'], PASSWORD_DEFAULT), diff --git a/app/Core/Database.php b/app/Core/Database.php index 17db959..0b16eb7 100644 --- a/app/Core/Database.php +++ b/app/Core/Database.php @@ -374,8 +374,9 @@ SQL; $adminStatement = $this->pdo->prepare( 'INSERT INTO users - (email, password_hash, full_name, phone, role, newsletter_opt_in, email_verified_at) - VALUES (?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP)' + (email, password_hash, full_name, phone, role, newsletter_opt_in, + two_factor_enabled, email_verified_at) + VALUES (?, ?, ?, ?, ?, ?, 0, CURRENT_TIMESTAMP)' ); $adminStatement->execute([ 'admin@fatbottomgrille.com',