I’m developing a chat application where users type in there username, email and password. I want, that the user can type in his username “case sensitive”, but also want, that no other user can register his username with another variant.
What would be the best solution for that? I was thinking about an extra field (f.e. “profile.username_display”) while saving all “username” as .toLowerCase().