mirror of
https://github.com/smittix/intercept.git
synced 2026-07-03 23:33:38 -07:00
fix: restore flask-limiter as mandatory dependency
Rate limiting on login is a security requirement, not optional. Reverts the no-op fallback — if flask-limiter is missing, the app will fail fast with a clear import error rather than silently running without rate limiting. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -326,9 +326,9 @@ install_python_deps() {
|
||||
"Werkzeug>=3.1.5" "pyserial>=3.5" "flask-sock" "websocket-client>=1.6.0" 2>/dev/null || true
|
||||
|
||||
# Verify critical packages
|
||||
$PY -c "import flask; import requests" 2>/dev/null || {
|
||||
fail "Critical Python packages (flask, requests) not installed"
|
||||
echo "Try: venv/bin/pip install flask requests"
|
||||
$PY -c "import flask; import requests; from flask_limiter import Limiter" 2>/dev/null || {
|
||||
fail "Critical Python packages (flask, requests, flask-limiter) not installed"
|
||||
echo "Try: venv/bin/pip install flask requests flask-limiter"
|
||||
exit 1
|
||||
}
|
||||
ok "Core Python packages installed"
|
||||
|
||||
Reference in New Issue
Block a user