feat: Secure SMS verification with Redis (Predis)

- Added Predis library for Redis connection (no PHP extension required)
- Server-side SMS code generation and storage in Redis
- Rate limiting and brute-force protection
- Integration with n8n webhook for SMS sending
- Environment variables moved to .env file
- Fixed policy verification endpoint
- Added file-based fallback if Redis unavailable
This commit is contained in:
Fedor
2026-01-15 15:40:13 +03:00
commit 2c516362df
582 changed files with 146066 additions and 0 deletions

32
.gitignore vendored Normal file
View File

@@ -0,0 +1,32 @@
# Логи
logs/
*.log
# Временные файлы
*.tmp
*.temp
*.swp
*.swo
*~
# Системные файлы
.DS_Store
Thumbs.db
.idea/
.vscode/
# Файлы загрузок (если есть временная папка)
uploads/temp/
tmp/
# Конфигурационные файлы с секретами
config.local.php
.env.local
.env
# Composer dependencies
vendor/
# Storage (SMS коды и прочее)
storage/