Changeset - 9dda1146327c
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2011-12-07 19:43:16
marcin@python-works.com
case insensitive fix for issue #298
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/forms.py
Show inline comments
 
@@ -415,7 +415,7 @@ def UniqSystemEmail(old_data):
 
    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(
0 comments (0 inline, 0 general)