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'; } /**