Mercurial > kallithea
diff rhodecode/lib/auth.py @ 742:1377a9d4bdb9 beta
#78, fixed more reliable case insensitive searches
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 23 Nov 2010 14:15:45 +0100 |
parents | 54684e071457 |
children | 88338675a0f7 |
line wrap: on
line diff
--- a/rhodecode/lib/auth.py Tue Nov 23 12:58:45 2010 +0100 +++ b/rhodecode/lib/auth.py Tue Nov 23 14:15:45 2010 +0100 @@ -107,7 +107,9 @@ #since ldap is searching in case insensitive check if this user is still #not in our system username = username.lower() - if user_model.get_by_username(username, cache=False) is not None: + user_obj = user_model.get_by_username(username, cache=False, + case_insensitive=True) + if user_obj is not None: return False from rhodecode.model.settings import SettingsModel