feat: fix registration 500, add forgot-password flow, frontend validation
Some checks failed
Build and Deploy / Backend Tests (push) Has been cancelled
Build and Deploy / Frontend Build Check (push) Has been cancelled
Build and Deploy / Build Docker Images (push) Has been cancelled
Build and Deploy / Deploy to Server (push) Has been cancelled

- Fix MissingGreenlet: sync_engine now uses psycopg2 instead of asyncpg
- Fix bcrypt/passlib compat: pin bcrypt<4.1 in requirements
- Fix legacy password_hash NOT NULL: alter column to nullable in migration
- Add frontend password validation (uppercase + lowercase + digit)
- Add forgot-password and reset-password backend endpoints
- Add forgot-password and reset-password frontend pages
- Add email_service.py (SMTP via admin settings)
- Add reset_token/reset_token_expires columns to User model
- Migrate legacy JSON-only users to DB on password reset request
- Mount data/ volume in docker-compose.local.yml for persistence
- Add production deployment config (Dockerfile, nginx, deploy.sh)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Sepehr Ramezani
2026-05-01 16:23:51 +02:00
parent 26bd096a06
commit 2f7347b4db
25 changed files with 2765 additions and 64 deletions

View File

@@ -18,10 +18,12 @@ ipykernel==6.27.1
openai>=1.0.0
psutil==5.9.8
python-magic-bin==0.4.14
python-magic>=0.4.27
# python-magic-bin==0.4.14 # Windows only - use python-magic on Linux/macOS
PyJWT==2.8.0
passlib[bcrypt]==1.7.4
bcrypt<4.1
stripe==7.0.0
redis==5.0.1
@@ -33,7 +35,10 @@ alembic==1.13.1
aiosqlite>=0.19.0
asyncpg>=0.29.0
psycopg2-binary>=2.9.0
greenlet>=3.0.0
aiosmtplib>=3.0.0
pytest>=7.0.0
pytest-asyncio>=0.21.0