IMA-WorldHealth / bhima-1.X

A hospital information system for developing countries.
GNU General Public License v2.0
10 stars 14 forks source link

Bhima Login is case-insensitive, but user registration is case-sensative #880

Closed jniles closed 9 years ago

jniles commented 9 years ago

It is possible to create a user that can never log into bhima by putting uppercase letters in the username. The login procedure is case-insensitive, and automatically converts the username using toLowerCase(). Therefore, a user with the username 'bHima' will never match, since it will automatically be converted to 'bhima'.

I suggest that we convert the user's username toLowerCase() in the user creation page to prevent this bug.