update jwt secret

This commit is contained in:
usmannasir
2025-05-18 19:22:13 +05:00
parent f265c2e7b9
commit 6e122823e2

View File

@@ -2026,6 +2026,9 @@ def get_terminal_jwt(request):
m = re.match(r'\s*JWT_SECRET\s*=\s*[\'"](.+)[\'"]', line)
if m and m.group(1) != 'REPLACE_ME_WITH_INSTALLER':
jwt_secret = m.group(1)
if os.path.exists(ProcessUtilities.debugPath):
from plogical.CyberCPLogFileWriter import CyberCPLogFileWriter
CyberCPLogFileWriter.writeLog(f"JWT_SECRET: {jwt_secret}")
break
except Exception as e:
logger.error(f"Could not read JWT_SECRET: {e}")