From ac4a0cc6665c69711706e389ecffbd3915c44d52 Mon Sep 17 00:00:00 2001 From: Stephen Burrows Date: Fri, 3 Sep 2010 16:03:16 -0400 Subject: [PATCH] Tweaked AccountMultiView to account for emails containing '+' in the local address. --- contrib/waldo/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.20.1