Mercurial > kallithea
changeset 5640:2eaabe413ef6
lib: drop fuzzy matching on full user names in user_or_none
The fallback of checking for matching user names is expensive, untested,
fragile, and almost useless.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 05 Jan 2016 16:30:12 +0100 |
parents | f8a714c2c5a1 |
children | a1a517ebf550 |
files | kallithea/lib/helpers.py |
diffstat | 1 files changed, 0 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/helpers.py Tue Jan 05 16:30:12 2016 +0100 +++ b/kallithea/lib/helpers.py Tue Jan 05 16:30:12 2016 +0100 @@ -483,11 +483,6 @@ user = User.get_by_email(email, case_insensitive=True, cache=True) if user is not None: return user - - user = User.get_by_username(author_name(author), case_insensitive=True, cache=True) - if user is not None: - return user - return None def email_or_none(author):