this post was submitted on 19 Dec 2021
8 points (100.0% liked)

lemmur

654 readers
1 users here now

Community dedicated to discussions around a mobile lemmy client

Code repository: github.com/LemmurOrg/lemmur

Contribute translations: Weblate

Download for your device:

Support development:

Before asking for help with a problem make sure you've read the FAQ

founded 4 years ago
MODERATORS
 

I just discovered lemmy and created an account on the web (because lemmur send me there). I can obviously login to lemmy.ml but not on lemmur. Is that a bug?

Edit: My account is appearantly "Mordor" and not "mordor" - even though I signed up as "mordor". Web client handles this but not lemmy.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 3 years ago

Yeah so it is kind of related, see this comment

Sorry to bother you again, it took me some time to find this again on GitHub. This login bug I was experiencing was introduced when fixing this other login bug, you can see in that commit that eq was changed to ilike but now your new pull request reintroduces that old bug with the case-sensitiveness of the usernames during login. I think the solution to both bugs would be converting to uppercase before comparing with eq (and having a computed uppercased column indexed on the database). I don't know enough Rust to propose code changes or send a pull request, I hope my description of the solution is good enough for someone more knowledgeable to write the code.