changeset 1760:9dda1146327c beta

case insensitive fix for issue #298
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 07 Dec 2011 20:43:16 +0200
parents d6c6ea17b100
children b265be1c6093
files rhodecode/model/forms.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/model/forms.py	Wed Dec 07 20:17:12 2011 +0200
+++ b/rhodecode/model/forms.py	Wed Dec 07 20:43:16 2011 +0200
@@ -415,7 +415,7 @@
     class _UniqSystemEmail(formencode.validators.FancyValidator):
         def to_python(self, value, state):
             value = value.lower()
-            if old_data.get('email') != value:
+            if old_data.get('email').lower() != value:
                 user = User.get_by_email(value, case_insensitive=True)
                 if user:
                     raise formencode.Invalid(