diff --git a/bp/auth/routes.py b/bp/auth/routes.py index eecee81..4aedefb 100644 --- a/bp/auth/routes.py +++ b/bp/auth/routes.py @@ -32,7 +32,7 @@ from shared.services.widget_registry import widgets from sqlalchemy.orm import selectinload from shared.browser.app.redis_cacher import clear_cache from shared.infrastructure.cart_identity import current_cart_identity -from shared.events import emit_event +from shared.events import emit_activity from .services import pop_login_redirect_target, store_login_redirect_target from .services.auth_operations import ( get_app_host, @@ -287,12 +287,12 @@ def register(url_prefix="/auth"): u2.last_login_at = now # Emit adoption event inside this transaction if anon_session_id: - await emit_event( + await emit_activity( s, - "user.logged_in", - "user", - user_id, - { + activity_type="rose:Login", + actor_uri="internal:system", + object_type="Person", + object_data={ "user_id": user_id, "session_id": anon_session_id, }, diff --git a/shared b/shared index d697709..2e9db11 160000 --- a/shared +++ b/shared @@ -1 +1 @@ -Subproject commit d697709f60a71941880f4288be469913d11ce967 +Subproject commit 2e9db119252aae9db2374b948c687467081a0b85