Tweaked AccountMultiView to account for emails containing '+' in the local address.
authorStephen Burrows <stephen.r.burrows@gmail.com>
Fri, 3 Sep 2010 20:03:16 +0000 (16:03 -0400)
committerStephen Burrows <stephen.r.burrows@gmail.com>
Thu, 23 Sep 2010 16:31:50 +0000 (12:31 -0400)
contrib/waldo/models.py

index c2e98c4..183fe49 100644 (file)
@@ -432,7 +432,7 @@ class AccountMultiView(LoginMultiView):
                
                user = get_object_or_404(User, id=uid_int)
                
-               email = email.replace('+', '@')
+               email = '@'.join(email.rsplit('+', 1))
                
                if email == user.email:
                        # Then short-circuit.