refactor: Move log_sensitive to edx-django-utils (#30349)

It was copied there in 4.7.0 (openedx/edx-django-utils#209) so it can be used in more IDAs.

Includes dropping dependency on PyNacl, which was only in use by that module.
This commit is contained in:
Tim McCormack
2022-05-06 08:42:19 -04:00
committed by GitHub
parent b56741cf83
commit 80f60ffb36
7 changed files with 15 additions and 252 deletions

View File

@@ -91,10 +91,10 @@ from django.http import HttpResponse
from django.utils.crypto import get_random_string
from django.utils.deprecation import MiddlewareMixin
from edx_django_utils.cache import RequestCache
from edx_django_utils.logging import encrypt_for_log
from edx_django_utils.monitoring import set_custom_attribute
from edx_toggles.toggles import SettingToggle
from common.djangoapps.util.log_sensitive import encrypt_for_log
from openedx.core.djangoapps.user_authn.cookies import delete_logged_in_cookies
from openedx.core.lib.mobile_utils import is_request_from_mobile_app