mirror of
https://github.com/dartdavros/chatballs.git
synced 2026-10-12 04:14:59 +03:00
- add an event-type -> handler registry; the worker dispatches outbox events to registered handlers (with retry/dead-letter already in place) - password-reset request now enqueues an outbox event instead of sending mail synchronously in the request (non-blocking, retryable, less timing leak) - move email building into identity.emails; identity handler sends on dispatch - tests cover enqueue (no sync mail), non-enumeration, and handler delivery Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
12 lines
361 B
Python
12 lines
361 B
Python
from django.apps import AppConfig
|
|
|
|
|
|
class IdentityConfig(AppConfig):
|
|
default_auto_field = "django.db.models.BigAutoField"
|
|
label = "identity"
|
|
name = "hub_platform.identity"
|
|
verbose_name = "Identity and platform core"
|
|
|
|
def ready(self) -> None:
|
|
from hub_platform.identity import event_handlers # noqa: F401 (register outbox handlers)
|