|
|
@ -534,13 +534,15 @@ class OpenID_Connect_Generic_Client_Wrapper {
|
|
|
|
// copy the username for incrementing
|
|
|
|
// copy the username for incrementing
|
|
|
|
$username = $desired_username;
|
|
|
|
$username = $desired_username;
|
|
|
|
|
|
|
|
|
|
|
|
// original user gets "name"
|
|
|
|
if (!$this->settings->link_existing_users) {
|
|
|
|
// second user gets "name2"
|
|
|
|
// original user gets "name"
|
|
|
|
// etc
|
|
|
|
// second user gets "name2"
|
|
|
|
$count = 1;
|
|
|
|
// etc
|
|
|
|
while ( username_exists( $username ) ) {
|
|
|
|
$count = 1;
|
|
|
|
|
|
|
|
while ( username_exists( $username ) ) {
|
|
|
|
$count ++;
|
|
|
|
$count ++;
|
|
|
|
$username = $desired_username . $count;
|
|
|
|
$username = $desired_username . $count;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return $username;
|
|
|
|
return $username;
|
|
|
|