From 17f48adb49c6d3d72c89078d2840a8f3b5cd1e2e Mon Sep 17 00:00:00 2001 From: sohailfatima <23100065@lums.edu.pk> Date: Mon, 27 May 2024 15:15:48 +0500 Subject: [PATCH] feat: remove unnecessary PII --- .../djangoapps/student/management/commands/recover_account.py | 2 -- openedx/core/djangoapps/user_authn/views/login.py | 1 - openedx/core/djangoapps/user_authn/views/password_reset.py | 2 -- 3 files changed, 5 deletions(-) diff --git a/common/djangoapps/student/management/commands/recover_account.py b/common/djangoapps/student/management/commands/recover_account.py index 1cb1249ff65e..7b156abdc510 100644 --- a/common/djangoapps/student/management/commands/recover_account.py +++ b/common/djangoapps/student/management/commands/recover_account.py @@ -89,9 +89,7 @@ def handle(self, *args, **options): tracker.emit( PASSWORD_RESET_INITIATED, { - "email": user.email, "user_id": user.id, - "old_email": current_email, "source": "Account Recovery Management Command", } ) diff --git a/openedx/core/djangoapps/user_authn/views/login.py b/openedx/core/djangoapps/user_authn/views/login.py index 6c4eaf0bbddd..2ad3c0ff18a0 100644 --- a/openedx/core/djangoapps/user_authn/views/login.py +++ b/openedx/core/djangoapps/user_authn/views/login.py @@ -199,7 +199,6 @@ def _enforce_password_policy_compliance(request, user): # lint-amnesty, pylint: tracker.emit( PASSWORD_RESET_INITIATED, { - "email": user.email, "user_id": user.id, "source": "Policy Compliance", } diff --git a/openedx/core/djangoapps/user_authn/views/password_reset.py b/openedx/core/djangoapps/user_authn/views/password_reset.py index 57bde03c4544..321101fb9a18 100644 --- a/openedx/core/djangoapps/user_authn/views/password_reset.py +++ b/openedx/core/djangoapps/user_authn/views/password_reset.py @@ -293,7 +293,6 @@ def password_reset(request): tracker.emit( PASSWORD_RESET_INITIATED, { - "email": email, "user_id": user.id, "source": "Logistration Page", } @@ -620,7 +619,6 @@ def password_change_request_handler(request): tracker.emit( PASSWORD_RESET_INITIATED, { - "email": email, "user_id": user.id, "source": "Account API", }