Show More
@@ -415,7 +415,7 b' def UniqSystemEmail(old_data):' | |||||
415 | class _UniqSystemEmail(formencode.validators.FancyValidator): |
|
415 | class _UniqSystemEmail(formencode.validators.FancyValidator): | |
416 | def to_python(self, value, state): |
|
416 | def to_python(self, value, state): | |
417 | value = value.lower() |
|
417 | value = value.lower() | |
418 | if old_data.get('email').lower() != value: |
|
418 | if old_data.get('email','').lower() != value: | |
419 | user = User.get_by_email(value, case_insensitive=True) |
|
419 | user = User.get_by_email(value, case_insensitive=True) | |
420 | if user: |
|
420 | if user: | |
421 | raise formencode.Invalid( |
|
421 | raise formencode.Invalid( |
General Comments 0
You need to be logged in to leave comments.
Login now