Permalink
Browse files

AccountRecoveryForm: Search e-mail case-insensitive

E-mail addresses are usually treated as case-insensitive, so it makes
sense to be lenient here.
  • Loading branch information...
1 parent 4ff87c8 commit 6aade0d27af447a972cbe6aeb6559e5f3a2ace7e @robinst robinst committed Apr 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 askbot/deps/django_authopenid/forms.py
@@ -392,7 +392,7 @@ def clean_email(self):
if 'email' in self.cleaned_data:
email = self.cleaned_data['email']
try:
- user = User.objects.get(email=email)
+ user = User.objects.get(email__iexact=email)
self.cleaned_data['user'] = user
except User.DoesNotExist:
del self.cleaned_data['email']

0 comments on commit 6aade0d

Please sign in to comment.