summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 3c7df4d..3c33e50 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -579,7 +579,8 @@ def check(request, q_id, attempt_num=None, questionpaper_id=None):
return show_question(request, current_question, paper)
-
+@login_required
+@email_verified
def quit(request, reason=None, attempt_num=None, questionpaper_id=None):
"""Show the quit page when the user logs out."""
paper = AnswerPaper.objects.get(user=request.user,