Canop / miaou

A chat server with OAuth2 authentication, persistent and searchable history, video and audio, markdown formatting, private and public rooms, stars, votes, embedded games, and many other features
http://miaou.dystroy.org/
Other
542 stars 73 forks source link

UTF-8 not supported in user names #21

Closed ghost closed 9 years ago

ghost commented 10 years ago

When logging in from a Stack Exchange profile (where my name is "André"), here is what I got on profile page :

Screenshot

Also, when trying to manually enter my name (with the "é" character) it doesn't validate.

Canop commented 10 years ago

The fact you can't have a "é" in a username is a feature. User names must be easy to type by everybody, especially for pings.

I understand this might not be ideal. Discussions on this point are still open on the chat.

The fact the proposed username was "AndrLc233m" looks like a bug.

ghost commented 10 years ago

Maybe we should allow UTF-8 and have some sort of TAB completion for usernames, for example if someone can't type a character, he just types the first few chars of the name and uses TAB to complete the rest of it, including the "special" characters.

That's currently in place at StackExchange (in their comments and chat) where UTF-8 is allowed in names and everybody is happy with it.

And by the way the weird "Lc233" in the name is actually random, I've tried registering a second time and there was something else in its place.

Canop commented 10 years ago

There's already tab autocompletion for usernames in Miaou. This doesn't really change the problem.

The difference is that SO isn't interested in preventing impersonation (everybody may sign in the chat with the name of another user) while it's a fundamental feature of Miaou.

The reason there are random chars is that when the username you get from your OAuth is too short, it's completed with random chars. But "Andr" isn't so short so I might improve this.