From: Stephen Burrows Date: Fri, 3 Sep 2010 20:03:16 +0000 (-0400) Subject: Tweaked AccountMultiView to account for emails containing '+' in the local address. X-Git-Tag: philo-0.9~32^2~12 X-Git-Url: http://git.ithinksw.org/philo.git/commitdiff_plain/ac4a0cc6665c69711706e389ecffbd3915c44d52?ds=inline Tweaked AccountMultiView to account for emails containing '+' in the local address. --- diff --git a/contrib/waldo/models.py b/contrib/waldo/models.py index c2e98c4..183fe49 100644 --- a/contrib/waldo/models.py +++ b/contrib/waldo/models.py @@ -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.