dvirlabs 417b2ef877
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
feat: Add admin user, PIN-based password reset, and profile management
- Auto-create admin user on startup with configurable credentials
- Force password change on first admin login
- PIN-based password reset via email (6-digit code)
- Remove demo account notice from login page
- Add complete profile edit with email, phone, address fields
- Add password change functionality in profile
- Add database migration for new user fields
- Update Helm values with admin and email config
2026-05-07 08:09:30 +03:00

29 lines
824 B
Python

from pydantic_settings import BaseSettings
from pathlib import Path
class Settings(BaseSettings):
database_url: str
jwt_secret_key: str
jwt_algorithm: str = "HS256"
access_token_expire_minutes: int = 30
frontend_url: str = "http://localhost:5173"
# Admin user credentials (created on first startup)
admin_email: str = "admin@brand-master.com"
admin_password: str = "admin123" # Change via ADMIN_PASSWORD env var
admin_full_name: str = "System Administrator"
# Email configuration for password reset
smtp_host: str = "smtp.gmail.com"
smtp_port: int = 587
smtp_username: str = ""
smtp_password: str = ""
smtp_from: str = "noreply@brand-master.com"
class Config:
env_file = str(Path(__file__).parent.parent / ".env")
settings = Settings()