[Solution] How to use non-Latin characters registered user name

  1. 7 years ago

    A few days ago received a letter from a friend, trying to solve the Chinese user name problem. (Google Translate)

    /models/ETMemberModel.class.php

    if (strlen($username) < 3 or strlen($username) > 20 or preg_match("/\W/", $username)) return "invalidUsername";
    
    if (strlen($username) < 3 or strlen($username) > 20 or preg_match("/[-<>$*.\s]/", $username)) return "invalidUsername";

    But this will lead to Notifications failure.

  2. 6 years ago

    so is there a perfect solution now?

 

or Sign Up to reply!