From 6aade0d27af447a972cbe6aeb6559e5f3a2ace7e Mon Sep 17 00:00:00 2001 From: Robin Stocker Date: Wed, 4 Apr 2012 17:11:24 +0200 Subject: AccountRecoveryForm: Search e-mail case-insensitive E-mail addresses are usually treated as case-insensitive, so it makes sense to be lenient here. --- askbot/deps/django_authopenid/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/askbot/deps/django_authopenid/forms.py b/askbot/deps/django_authopenid/forms.py index 8e6ce528..db2afcd8 100644 --- a/askbot/deps/django_authopenid/forms.py +++ b/askbot/deps/django_authopenid/forms.py @@ -392,7 +392,7 @@ class AccountRecoveryForm(forms.Form): 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'] -- cgit v1.2.3-1-g7c22