git.ithinksw.org
/
philo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9a2658
)
Tweaked AccountMultiView to account for emails containing '+' in the local address.
author
Stephen Burrows
<stephen.r.burrows@gmail.com>
Fri, 3 Sep 2010 20:03:16 +0000
(16:03 -0400)
committer
Stephen Burrows
<stephen.r.burrows@gmail.com>
Thu, 23 Sep 2010 16:31:50 +0000
(12:31 -0400)
contrib/waldo/models.py
patch
|
blob
|
history
diff --git
a/contrib/waldo/models.py
b/contrib/waldo/models.py
index
c2e98c4
..
183fe49
100644
(file)
--- 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.