Auth System Diagnostic
=== Test 1: File Existence ===
Auth file path: /home/agoristmarket/public_html/v15.agorist.market/account/../includes/auth.php
Auth file exists: ✓ YES
=== Test 2: Loading auth.php ===
Warning: session_start(): Session cannot be started after headers have already been sent in /home/agoristmarket/public_html/v15.agorist.market/includes/auth.php on line 13
✓ auth.php loaded successfully
=== Test 3: Data Directory ===
Data directory: /home/agoristmarket/public_html/v15.agorist.market/data
Data directory exists: ✓ YES
Data directory writable: ✓ YES
=== Test 4: JSON Files ===
users.json path: /home/agoristmarket/public_html/v15.agorist.market/data/users.json
users.json exists: ✓ YES
tokens.json path: /home/agoristmarket/public_html/v15.agorist.market/data/tokens.json
tokens.json exists: ✓ YES
=== Test 5: Initialize Missing Files ===
=== Test 6: Test Auth Functions ===
Testing email validation...
Email validation: ✓ WORKS
Testing session start...
Warning: session_start(): Session cannot be started after headers have already been sent in /home/agoristmarket/public_html/v15.agorist.market/account/account-test-auth.php on line 104
✓ Session started
=== Test 7: File Permissions ===
users.json readable: ✓ YES
users.json writable: ✓ YES
tokens.json readable: ✓ YES
tokens.json writable: ✓ YES
=== DIAGNOSTIC COMPLETE ===
If all tests passed, login.php should work.
If any tests failed, fix those issues first.