简体   繁体   中英

Should I allow emojis in my usernames?

I'm implementing a new user authentication system for my mobile app and was constructing my username rules, ie less than 40 characters, alpha-numeric, etc.. when I thought about why I should only limit it to alpha numeric.

I don't have any issues from the application view - they can use emojis and foreign characters for all I care. I've been trying to figure out reasons why I shouldn't allow it but couldn't think of any good reasons other than it might be non-intuitive for users to search by username if it's just an emoji. Are there any other reasons or landmines that I'm overlooking? I'm using GraphCool as my backend-as-a-service.

如果以任何方式都难以登录-就像用户无法通过某些键盘访问表情符号,则否。

Theoretically there is no problem with that. Theoretically unicode works. In practice it managed to crash a lot of ios devices.

That's also good to know: https://security.stackexchange.com/questions/95847/advantages-to-alphanumeric-only-usernames

I would not recommend allowing just any character as a username. You could allow a few selected characters, but allowing any character is probably a security risk.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM