Skip to content

Commit

Permalink
feat: remove unnecessary PII
Browse files Browse the repository at this point in the history
  • Loading branch information
sohailfatima committed Jun 4, 2024
1 parent 582b416 commit 17f48ad
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
)
Expand Down
1 change: 0 additions & 1 deletion openedx/core/djangoapps/user_authn/views/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
Expand Down
2 changes: 0 additions & 2 deletions openedx/core/djangoapps/user_authn/views/password_reset.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ def password_reset(request):
tracker.emit(
PASSWORD_RESET_INITIATED,
{
"email": email,
"user_id": user.id,
"source": "Logistration Page",
}
Expand Down Expand Up @@ -620,7 +619,6 @@ def password_change_request_handler(request):
tracker.emit(
PASSWORD_RESET_INITIATED,
{
"email": email,
"user_id": user.id,
"source": "Account API",
}
Expand Down

0 comments on commit 17f48ad

Please sign in to comment.