pootle icon indicating copy to clipboard operation
pootle copied to clipboard

Users can register with 2 character name, but team user search require at least 3 characters

Open lordofbikes opened this issue 7 years ago • 1 comments

Steps to reproduce:

Register an account with user name AL. On a language team site try to add this user to the language team.

Results (Expected/Actual):

It's not possible to add this user to any language team, as the search input requires at least 3 characters to find a user name. User name registration or modification should take care about minimum length of 3 characters. Or the search fields should accept less characters.

Environment (i.e. 'pootle --version', DB, OS, Browser):

Pootle 2.8.1 (Django 1.10.8, Translate Toolkit 2.2.4) MariaDB 10.0.32 Debian Jessie Firefox 59.0.2

A work around for administrators is, to modify the user name, add it to the language team and rename the user again.

lordofbikes avatar Apr 04 '18 11:04 lordofbikes

The search is probably 3 chars to save on resources allocated to each search. A possible solution is to only allow 3+ char usernames and do something with current 2char users. However i think the best idea would be to rewrite the search to feature direct hits.

comradekingu avatar Apr 13 '18 11:04 comradekingu