From a677b6818ecfc01452ad55b539b2575a50bca338 Mon Sep 17 00:00:00 2001 From: KyryloKireiev Date: Mon, 25 Sep 2023 14:12:17 +0300 Subject: [PATCH] fix: (review) Add comment to Delete Account view --- openedx/core/djangoapps/user_api/accounts/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openedx/core/djangoapps/user_api/accounts/views.py b/openedx/core/djangoapps/user_api/accounts/views.py index 2fb9fbde21c7..48cb10fc7f42 100644 --- a/openedx/core/djangoapps/user_api/accounts/views.py +++ b/openedx/core/djangoapps/user_api/accounts/views.py @@ -568,6 +568,9 @@ class DeactivateLogoutView(APIView): - Log the user out - Create a row in the retirement table for that user """ + # BearerAuthentication is added here to support account deletion + # from the mobile app until it moves to JWT Auth. + # See mobile roadmap issue https://github.com/openedx/edx-platform/issues/33307. authentication_classes = (JwtAuthentication, SessionAuthentication, BearerAuthentication) permission_classes = (permissions.IsAuthenticated,)