summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authoradityacp2017-06-12 18:24:01 +0530
committeradityacp2017-06-12 18:24:01 +0530
commit3552f4bc8082fc3ecc5290029cac6a839cd3b247 (patch)
treebb2014bed4c67f644932070611bcdb68eb234912 /yaksh/views.py
parenta002ab59dbff856ee3838078cbe4f8fa439fd894 (diff)
parenteae6ee7ceb25f78b216a5e2c9d6165513272e4cb (diff)
downloadonline_test-3552f4bc8082fc3ecc5290029cac6a839cd3b247.tar.gz
online_test-3552f4bc8082fc3ecc5290029cac6a839cd3b247.tar.bz2
online_test-3552f4bc8082fc3ecc5290029cac6a839cd3b247.zip
Add latest changes after rebase
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 3319773..9785230 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -1579,7 +1579,10 @@ def new_activation(request, email=None):
user.profile.key_expiry_time = timezone.now() + \
timezone.timedelta(minutes=20)
user.profile.save()
- success, msg = send_user_mail(user.email, user.profile.activation_key)
+ new_user_data = User.objects.get(email=email)
+ success, msg = send_user_mail(new_user_data.email,
+ new_user_data.profile.activation_key
+ )
if success:
context['activation_msg'] = msg
else:
@@ -1591,6 +1594,8 @@ def new_activation(request, email=None):
context_instance=ci)
def update_email(request):
+ context = {}
+ ci = RequestContext(request)
if request.method == "POST":
email = request.POST.get('email')
username = request.POST.get('username')