MESH-Research / knowledge-commons-works

The next-generation research repository for the Knowledge Commons (formerly Humanities Commons)
https://hcommons.org
MIT License
4 stars 0 forks source link

Username case-sensitivity #582

Closed mikethicke closed 1 week ago

mikethicke commented 1 month ago

If there is a case mismatch between a user's username in COmanage and WordPress, logging in to Works fails, with Works reporting an authentication error.

For example, if the username returned to Works after a successful authentication is "MikeThicke" but the user's name in WordPress / Works is "mikethicke" the user will fail to log in. If the username returned to Works is changed to "mikethicke" so that its case matches the Works / WordPress username, login succeeds.

There are many users with case-mismatched names between COmanage and WordPress, as usernames are converted to all lowercase by WordPress, but COmanage allows mixed-case usernames when registering.

Works needs to accept case-mismatched usernames on login.