Merge pull request #183 from cs1m0n/increment_username_fix

Increment username just when link_existing_users is off
isekai
Jonathan Daggerhart 5 years ago committed by GitHub
commit 4a84b3c651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -534,6 +534,7 @@ class OpenID_Connect_Generic_Client_Wrapper {
// copy the username for incrementing
$username = $desired_username;
if (!$this->settings->link_existing_users) {
// original user gets "name"
// second user gets "name2"
// etc
@ -542,6 +543,7 @@ class OpenID_Connect_Generic_Client_Wrapper {
$count ++;
$username = $desired_username . $count;
}
}
return $username;
}

Loading…
Cancel
Save