diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2012-02-29 16:39:07 +0200 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2012-02-29 16:39:07 +0200 |
commit | 9f7b590cf77cbd92c81a0a3d3bd2ba61210569a1 (patch) | |
tree | e7c45e64c1502ff407f22d34e4824851323d31b0 /rhodecode/model | |
parent | 8fc1aa3579f2a6e7dc6c7bb1b5b812409a44d95e (diff) |
fixes #376 Cannot edit user (using container auth)
--HG--
branch : beta
Diffstat (limited to 'rhodecode/model')
-rw-r--r-- | rhodecode/model/forms.py | 2 |
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( |