aboutsummaryrefslogtreecommitdiff
path: root/rhodecode/model/forms.py
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2012-02-29 16:39:07 +0200
committerMarcin Kuzminski <marcin@python-works.com>2012-02-29 16:39:07 +0200
commit9f7b590cf77cbd92c81a0a3d3bd2ba61210569a1 (patch)
treee7c45e64c1502ff407f22d34e4824851323d31b0 /rhodecode/model/forms.py
parent8fc1aa3579f2a6e7dc6c7bb1b5b812409a44d95e (diff)
fixes #376 Cannot edit user (using container auth)
--HG-- branch : beta
Diffstat (limited to 'rhodecode/model/forms.py')
-rw-r--r--rhodecode/model/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rhodecode/model/forms.py b/rhodecode/model/forms.py
index 7fc9103d..a0bd3707 100644
--- a/rhodecode/model/forms.py
+++ b/rhodecode/model/forms.py
@@ -487,7 +487,7 @@ def UniqSystemEmail(old_data):
class _UniqSystemEmail(formencode.validators.FancyValidator):
def to_python(self, value, state):
value = value.lower()
- if old_data.get('email', '').lower() != value:
+ if (old_data.get('email') or '').lower() != value:
user = User.get_by_email(value, case_insensitive=True)
if user:
raise formencode.Invalid(