emreakay / CodeIgniter-Aauth

Authorization, Authentication and User Management library for Codeigniter 2.x and 3.x to make easy user management and permission operations
http://emreakay.com
GNU Lesser General Public License v3.0
394 stars 235 forks source link

Russian letters in the username #219

Closed stalkerxxl closed 6 years ago

stalkerxxl commented 6 years ago

Hello! How can I use Russian letters in a name? I tried to add them to the array in conf aauth.php- but it does not work .. Will you provide the correct syntax?

REJack commented 6 years ago

Could you post your tested aauth config vars?

Does the russian language work with the UTF-8 Charset? I've never used russian sry

stalkerxxl commented 6 years ago

'additional_valid_chars' => array("А", "Б", "В"),

Yes, working with UTF

REJack commented 6 years ago

I've tested your additional_valid_chars and it works, I've created a test user with the name TestUserБ 😄 and if I'm add Ж to the array it allows also to rename the username to TestUserБAЖ.

That's strange :/ Did you recived a error on user creation?

stalkerxxl commented 6 years ago

Ok, I'll check today again .. Maybe my little php experience is the cause of the problem =) Wonderful library!

REJack commented 6 years ago

Ok nice, if you have some troubles with CI or Aauth let me know :D

And if you search an better alternative to CI's view loader, i recommend the Twig Template Engine with Twiggy for CI ^^

P.S.: You not need A or В in your array 😄 they look like normal alphanumeric characters.

stalkerxxl commented 6 years ago

Ok, tnx!