Code

Ticket #10026: confirm.diff

File confirm.diff, 479 bytes (added by jwmayfield, 5 years ago)
Line 
1Index: views.py
2===================================================================
3--- views.py    (revision 9183)
4+++ views.py    (working copy)
5@@ -118,6 +118,9 @@
6     user = get_object_or_404(User, id=uid_int)
7     context_instance = RequestContext(request)
8 
9+    if 'validlink' in context_instance:
10+        del context_instance['validlink']
11+
12     if token_generator.check_token(user, token):
13         context_instance['validlink'] = True
14         if request.method == 'POST':