I take that back… there is a filter that can be applied to the user data that will allow you to use the email address instead of the username. Here’s the code:
$user_data = apply_filters( 'okta_user_insert', array(
'user_login' => $username,
'user_pass' => wp_generate_password(),
'role' => $default_role,
), $user_response );
So in your case, you would just need to add a filter in your functions.php:
add_filter( 'okta_user_insert', 'okta_user_filter', 10, 2 );
function okta_user_filter( $user_data, $user_response ){
$user_data['user_login'] = $user_response->email;
return $user_data;
}
Let us know if that works for you.
-
This reply was modified 5 years, 10 months ago by Zillow.