bug fix: email list function

This commit is contained in:
usmannasir
2024-11-01 14:46:53 +04:00
parent 9fbdc60978
commit d83c5a998d
5 changed files with 14 additions and 7 deletions

View File

@@ -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():