File tree Expand file tree Collapse file tree
common/djangoapps/student/views Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -893,9 +893,8 @@ def activate_secondary_email(request, key):
893893 # Overwrite the pending email with a neutral placeholder before deletion so
894894 # that any downstream soft-delete mirror does not retain the real address.
895895 # We do NOT use get_retired_email_by_email() here because this is a normal
896- # user action, not a retirement flow; a hashed retirement-style value would
897- # produce false-positive retirement signals in downstream systems.
898- pending_secondary_email_change .new_secondary_email = "completed@delete-pending.com"
896+ # user action, not a retirement flow.
897+ pending_secondary_email_change .new_secondary_email = "redacted@retired.invalid"
899898 pending_secondary_email_change .save (update_fields = ['new_secondary_email' ])
900899 pending_secondary_email_change .delete ()
901900
You can’t perform that action at this time.
0 commit comments