mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-01 10:56:23 +01:00
Add debug logging for API key validation
- Log first 20 chars of API key being checked - Helps debug 'API key not found in settings' errors - Shows which token is being validated
This commit is contained in:
@@ -82,6 +82,9 @@ def validate_access_token(token, scan_id):
|
||||
try:
|
||||
from .models import AIScannerSettings, ScanHistory
|
||||
|
||||
# Debug: log the token being checked
|
||||
logging.writeToFile(f'[API] Checking API key: {token[:20]}... for scan {scan_id}')
|
||||
|
||||
# Find API key in settings
|
||||
scanner_settings = AIScannerSettings.objects.get(
|
||||
api_key=token
|
||||
|
||||
Reference in New Issue
Block a user