Skip to content

Commit

Permalink
AccountRecoveryForm: Search e-mail case-insensitive
Browse files Browse the repository at this point in the history
E-mail addresses are usually treated as case-insensitive, so it makes
sense to be lenient here.
  • Loading branch information
robinst committed Apr 4, 2012
1 parent 4ff87c8 commit 6aade0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion askbot/deps/django_authopenid/forms.py
Expand Up @@ -392,7 +392,7 @@ def clean_email(self):
if 'email' in self.cleaned_data: if 'email' in self.cleaned_data:
email = self.cleaned_data['email'] email = self.cleaned_data['email']
try: try:
user = User.objects.get(email=email) user = User.objects.get(email__iexact=email)
self.cleaned_data['user'] = user self.cleaned_data['user'] = user
except User.DoesNotExist: except User.DoesNotExist:
del self.cleaned_data['email'] del self.cleaned_data['email']
Expand Down

0 comments on commit 6aade0d

Please sign in to comment.