From 75b355c337240104c13094cf0e11e8d21a7552a1 Mon Sep 17 00:00:00 2001 From: Sarina Canelake Date: Fri, 21 Jun 2013 13:12:18 -0400 Subject: [PATCH] Remove unused reactivation email function --- common/djangoapps/student/views.py | 13 ------------- lms/urls.py | 2 -- 2 files changed, 15 deletions(-) diff --git a/common/djangoapps/student/views.py b/common/djangoapps/student/views.py index faf9ae4cff..6f97f0be63 100644 --- a/common/djangoapps/student/views.py +++ b/common/djangoapps/student/views.py @@ -985,19 +985,6 @@ def password_reset(request): 'error': 'Invalid e-mail'})) -@ensure_csrf_cookie -def reactivation_email(request): - ''' Send an e-mail to reactivate a deactivated account, or to - resend an activation e-mail. Untested. ''' - email = request.POST['email'] - try: - user = User.objects.get(email='email') - except User.DoesNotExist: - return HttpResponse(json.dumps({'success': False, - 'error': 'No inactive user with this e-mail exists'})) - return reactivation_email_for_user(user) - - def reactivation_email_for_user(user): reg = Registration.objects.get(user=user) diff --git a/lms/urls.py b/lms/urls.py index f6978f5f7b..a744db39f2 100644 --- a/lms/urls.py +++ b/lms/urls.py @@ -116,8 +116,6 @@ if not settings.MITX_FEATURES["USE_CUSTOM_THEME"]: url(r'^submit_feedback$', 'util.views.submit_feedback'), - # TODO: These urls no longer work. They need to be updated before they are re-enabled - # url(r'^reactivate/(?P[^/]*)$', 'student.views.reactivation_email'), ) # Only enable URLs for those marketing links actually enabled in the