diff --git a/apiserver/plane/api/views/authentication.py b/apiserver/plane/api/views/authentication.py index f5ec8aa08..13fc2abd8 100644 --- a/apiserver/plane/api/views/authentication.py +++ b/apiserver/plane/api/views/authentication.py @@ -99,7 +99,7 @@ class SignInEndpoint(BaseAPIView): "event_data": { "medium": "email", }, - "user": {"email": email}, + "user": {"email": email, "id": user.id}, "device_ctx": { "ip": request.META.get("REMOTE_ADDR"), "user_agent": request.META.get("HTTP_USER_AGENT"), @@ -150,7 +150,7 @@ class SignInEndpoint(BaseAPIView): "event_data": { "medium": "email", }, - "user": {"email": email}, + "user": {"email": email, "id": user.id}, "device_ctx": { "ip": request.META.get("REMOTE_ADDR"), "user_agent": request.META.get("HTTP_USER_AGENT"), @@ -324,7 +324,7 @@ class MagicSignInEndpoint(BaseAPIView): "event_data": { "medium": "code", }, - "user": {"email": email}, + "user": {"email": email, "id": user.id}, "device_ctx": { "ip": request.META.get("REMOTE_ADDR"), "user_agent": request.META.get( @@ -354,7 +354,7 @@ class MagicSignInEndpoint(BaseAPIView): "event_data": { "medium": "code", }, - "user": {"email": email}, + "user": {"email": email, "id": user.id}, "device_ctx": { "ip": request.META.get("REMOTE_ADDR"), "user_agent": request.META.get( diff --git a/apiserver/plane/api/views/oauth.py b/apiserver/plane/api/views/oauth.py index 13bf15e4d..ff19431c5 100644 --- a/apiserver/plane/api/views/oauth.py +++ b/apiserver/plane/api/views/oauth.py @@ -217,7 +217,7 @@ class OauthEndpoint(BaseAPIView): "event_data": { "medium": f"oauth-{medium}", }, - "user": {"email": email}, + "user": {"email": email, "id": user.id}, "device_ctx": { "ip": request.META.get("REMOTE_ADDR"), "user_agent": request.META.get("HTTP_USER_AGENT"), @@ -285,7 +285,7 @@ class OauthEndpoint(BaseAPIView): "event_data": { "medium": f"oauth-{medium}", }, - "user": {"email": email}, + "user": {"email": email, "id": user.id}, "device_ctx": { "ip": request.META.get("REMOTE_ADDR"), "user_agent": request.META.get("HTTP_USER_AGENT"),