Merge pull request #193 from xRy-42/dev

Allow periods and spaces in usernames
isekai
Jonathan Daggerhart 5 years ago committed by GitHub
commit cdcb165029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save