// Forge User Login.
$user_login = '';
if (!empty($identity['preferredUsername'])) {
$user_login = $identity['preferredUsername'];
}
elseif (!empty($identity['displayName'])) {
$user_login = $identity['displayName'];
}
elseif (!empty($identity['name']['formatted'])) {
$user_login = $identity['name']['formatted'];
}
else {
$user_login = trim($user_first_name . ' ' . $user_last_name);
}
// Forge User Login.
$user_login = '';
if ( ! empty ($user_first_name) || ! empty ($user_first_name)) {
$user_login = trim($user_first_name . ' ' . $user_last_name);
}elseif (!empty($identity['preferredUsername'])) {
$user_login = $identity['preferredUsername'];
} elseif (!empty($identity['displayName'])) {
$user_login = $identity['displayName'];
} elseif (!empty($identity['name']['formatted'])) {
$user_login = $identity['name']['formatted'];
}
Please sign in to your OneAll account to ask a new question or to contribute to the discussions.
Please click on the link below to connect to the forum with your OneAll account.