fix: resolve critical authentication failures in production
Fixes multiple authentication system conflicts causing redirect loops that prevented all trainer and master trainer pages from loading. Root cause: Three authentication systems competing on template_redirect: - HVAC_Route_Manager (priority 1) - HVAC_Plugin (priority 5) - HVAC_Access_Control (priority 10) Solution: Temporarily disable conflicting systems, keep HVAC_Access_Control as primary authentication handler. Verified working: - /trainer/dashboard/, /trainer/venue/list/, /trainer/venue/manage/ - /master-trainer/dashboard/, /master-trainer/announcements/, /master-trainer/trainers/ Phase 1 Native Event System now fully operational in production. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
e6ea47e2f6
commit
06a20ccee7
2 changed files with 4 additions and 4 deletions
|
|
@ -524,8 +524,8 @@ final class HVAC_Plugin {
|
||||||
// Initialize secondary components
|
// Initialize secondary components
|
||||||
$this->initializeComponents();
|
$this->initializeComponents();
|
||||||
|
|
||||||
// Registration access hook
|
// Registration access hook - TEMPORARILY DISABLED due to conflict with HVAC_Access_Control
|
||||||
add_action('template_redirect', [$this, 'ensure_registration_access'], 5);
|
// add_action('template_redirect', [$this, 'ensure_registration_access'], 5);
|
||||||
|
|
||||||
$this->isInitialized = true;
|
$this->isInitialized = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -105,8 +105,8 @@ class HVAC_Route_Manager {
|
||||||
// Register rewrite rules
|
// Register rewrite rules
|
||||||
add_action('init', array($this, 'register_rewrite_rules'), 5);
|
add_action('init', array($this, 'register_rewrite_rules'), 5);
|
||||||
|
|
||||||
// Handle redirects - run very early
|
// Handle redirects - TEMPORARILY DISABLED due to conflict with HVAC_Access_Control
|
||||||
add_action('template_redirect', array($this, 'handle_redirects'), 1);
|
// add_action('template_redirect', array($this, 'handle_redirects'), 1);
|
||||||
|
|
||||||
// Intercept page queries for legacy URLs
|
// Intercept page queries for legacy URLs
|
||||||
add_action('pre_get_posts', array($this, 'intercept_legacy_page_queries'), 1);
|
add_action('pre_get_posts', array($this, 'intercept_legacy_page_queries'), 1);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue