mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
bug fix: email list function
This commit is contained in:
@@ -39,6 +39,8 @@ class secMiddleware:
|
||||
or pathActual.endswith('/webhook') or pathActual.startswith('/cloudAPI') or pathActual.endswith('/gitNotify'):
|
||||
pass
|
||||
else:
|
||||
if os.path.exists(ProcessUtilities.debugPath):
|
||||
logging.writeToFile(f'Request needs session : {pathActual}')
|
||||
try:
|
||||
val = request.session['userID']
|
||||
except:
|
||||
@@ -95,6 +97,9 @@ class secMiddleware:
|
||||
if bool(request.body):
|
||||
try:
|
||||
|
||||
if os.path.exists(ProcessUtilities.debugPath):
|
||||
logging.writeToFile('Request body detected.. scanning')
|
||||
|
||||
# logging.writeToFile(request.body)
|
||||
data = json.loads(request.body)
|
||||
for key, value in data.items():
|
||||
|
||||
Reference in New Issue
Block a user