From 03fd5f5d9ff788868df7bfaabb53edfefc62f7aa Mon Sep 17 00:00:00 2001 From: "Beau Beauchamp, WebTigers" Date: Fri, 2 Oct 2026 09:33:12 -0400 Subject: [PATCH] Auth: signed-in non-admins land on /account (dashboard), not the public home MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An authenticated user should land on a dashboard, not the public marketing/home page. _roleHome already sends admin roles to /admin; it was sending everyone else to '/' (the public home — which, with the CMS home-page selector pointing / at a theme page, is whatever marketing/landing is set). Non-admin authenticated users now land on /account (the "My Account" dashboard, AccountController) — guests still see '/'. Fixes a signed-in `user` being dropped on the public home after login. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01ASauLLscjqdsNqBNsx2Typ --- core/controllers/AuthController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/controllers/AuthController.php b/core/controllers/AuthController.php index d9494b3..b5d38b7 100644 --- a/core/controllers/AuthController.php +++ b/core/controllers/AuthController.php @@ -385,11 +385,11 @@ public function meAction() $this->_json(['result' => $identity ? 1 : 0, 'data' => $identity]); } - /** Role-appropriate landing after auth: admin back office for admin+, else public home. */ + /** Role-appropriate landing after auth: admin back office for admin+, else the "My Account" dashboard. */ protected function _roleHome($identity) { $role = ($identity && isset($identity->role)) ? $identity->role : ''; - return in_array($role, self::ADMIN_ROLES, true) ? '/admin' : '/'; + return in_array($role, self::ADMIN_ROLES, true) ? '/admin' : '/account'; } /**