Refactor authentication and session management
- Updated Dockerfile to use Python 3.13 and streamline system dependencies installation. - Enhanced user session handling in auth.py, introducing a centralized method for retrieving the current user from the session. - Removed deprecated auth routes and consolidated logic for user authentication and profile management. - Improved error handling and user feedback in redeem.py and teams.py, ensuring users are redirected to login when not authenticated. - Updated requirements.txt to include necessary packages for enhanced security and functionality. - Added phpMyAdmin service to docker-compose for easier database management.
This commit is contained in:
+25
-15
@@ -1,18 +1,28 @@
|
||||
fastapi>=0.95.0
|
||||
uvicorn[standard]>=0.21.1
|
||||
sqlalchemy>=2.0.9
|
||||
pymysql>=1.0.3
|
||||
cryptography>=40.0.2
|
||||
python-multipart>=0.0.6
|
||||
authlib>=1.2.0
|
||||
# Specify specific versions for passlib and bcrypt to avoid compatibility issues
|
||||
passlib==1.7.4
|
||||
bcrypt==4.0.1
|
||||
# Web framework and server
|
||||
fastapi>=0.103.1
|
||||
uvicorn>=0.23.2
|
||||
starlette>=0.27.0
|
||||
jinja2>=3.1.2
|
||||
httpx>=0.25.0 # HTTP client for making requests
|
||||
|
||||
# Database
|
||||
sqlalchemy>=2.0.20
|
||||
pymysql>=1.1.0
|
||||
mysqlclient>=2.2.0
|
||||
|
||||
# Authentication and Security
|
||||
authlib>=1.2.1
|
||||
python-jose>=3.3.0
|
||||
python-multipart>=0.0.6
|
||||
passlib>=1.7.4
|
||||
itsdangerous>=2.1.2
|
||||
python-jose[cryptography]>=3.3.0
|
||||
bcrypt>=4.0.1
|
||||
|
||||
# Templates and UI
|
||||
jinja2>=3.1.2
|
||||
aiofiles>=23.2.1
|
||||
|
||||
# Common utilities
|
||||
python-dotenv>=1.0.0
|
||||
qrcode
|
||||
pydantic[email]>=1.10.7
|
||||
httpx
|
||||
email-validator>=2.0.0
|
||||
pydantic>=2.3.0
|
||||
qrcode>=7.4.2
|
||||
Reference in New Issue
Block a user