Add Two-Factor Authentication (2FA) support and key management features

- Implemented 2FA management in admin panel with enable/disable options.
- Added QR code display for 2FA setup and input for TOTP codes in login and pickup forms.
- Introduced key management section for generating, loading, and clearing RSA key pairs.
- Enhanced file upload and sharing functionality with optional 2FA.
- Added buttons for switching between development and production modes in admin panel.
- Updated API documentation to reflect new 2FA and key management features.
This commit is contained in:
Tyler Sammons
2025-09-14 13:10:04 -10:00
parent 36cf8f18f8
commit 5d568f7f89
19 changed files with 2625 additions and 990 deletions
+17 -7
View File
@@ -2,6 +2,7 @@ import os
import subprocess
import time
import sys
import platform
APP_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../app.py"))
@@ -14,13 +15,22 @@ def log(msg):
def start_dev():
env = os.environ.copy()
env["PRODUCTION"] = "false"
return subprocess.Popen(
["python3", APP_PATH],
env=env,
preexec_fn=os.setsid,
stdout=sys.stdout,
stderr=sys.stderr
)
if platform.system() == "Windows":
return subprocess.Popen(
["python", APP_PATH],
env=env,
stdout=sys.stdout,
stderr=sys.stderr
)
else:
return subprocess.Popen(
["python3", APP_PATH],
env=env,
preexec_fn=os.setsid,
stdout=sys.stdout,
stderr=sys.stderr
)
def main():
log("[*] Starting PacCrypt in DEVELOPMENT mode...")