Drupal generally treats the username in a case-insensitive manner, and this module probably should to. It should just be a matter of applying the SQL function "lower" to both the database field and the argument, like this:
SELECT COUNT(*) FROM {users} u WHERE lower(u.name) = lower('%s')
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | username_check_caseinsensitive.patch | 819 bytes | frankcarey |
Comments
Comment #1
frankcarey commented@scottgifford created patch per your suggestion, but against 6 version (might work for both?)
Comment #2
frankcarey commentedI tested this locally and it works (ASDFASDF is said to be taken, if asdfasdf is taken.
Comment #3
scottgifford commentedThat patch looks right to me.
Comment #4
ardas commentedFixed in 6.x-1.5
Comment #5
scottgifford commentedA backport to 5.x would be appreciated, we're still on that platform.
Thanks!