Translit names' special characters (#73)

When nickname is generated from a full name, intent to translit them to ascii instead of stripping special characters.
isekai
Raphaël Droz 7 years ago committed by Jonathan Daggerhart
parent 56bd5718e6
commit 756c3c05a1

@ -503,7 +503,7 @@ class OpenID_Connect_Generic_Client_Wrapper {
}
// normalize the data a bit
$desired_username = strtolower( preg_replace( '/[^a-zA-Z\_0-9]/', '', $desired_username ) );
$desired_username = strtolower( preg_replace( '/[^a-zA-Z\_0-9]/', '', iconv( 'UTF-8', 'ASCII//TRANSLIT', $desired_username ) ) );
// copy the username for incrementing
$username = $desired_username;

Loading…
Cancel
Save