Support » Plugins and Hacks » [Resolved] [Plugin: Social Connect] Strange Yahoo! Login usernames

[Resolved] [Plugin: Social Connect] Strange Yahoo! Login usernames

Viewing 3 replies - 1 through 3 (of 3 total)
  • My understanding is that Y! passes that ID when the user has not set a user profile name (http://pulse.yahoo.com/y/profile). The ID you got is the unique ID used by Y! to identify its user through its OAuth/OpenID processes. WP expects and ID and when given a blank name will insert that unique ID as name.

    Plugin Author thenbrent


    Social connect creates a username by combining the first and last names of a user. If that username already exists and the login isn’t for that user (based on email address) then it creates a random email address.

    You’ll likely see those usernames in testing, but rarely see them on a live site.

    Currently the offending line is:

    if ( username_exists( $user_login ) ) {
    	$user_login = apply_filters( 'social_connect_username_exists', strtolower("sc_". md5( $social_connect_provider . $sc_provider_identity ) ) );

    For the new version, I’ve changed this so you can filter the new username.

    $user_login = apply_filters( 'social_connect_username_exists', strtolower("sc_". md5( $social_connect_provider . $sc_provider_identity ) ) );

    To test this, download the development version from here: https://github.com/thenbrent/social-connect/archives/master

    Be sure to check that usernames you create do not already exist.

    Thanks for a great plugin, works well. Question regarding the username, is it possible to allow user to select their own username, rather than combine first and last names?

    Secondly, when a new user register on my website using social connect via facebook, gmail, etc, neither I nor the user gets a welcome email. Is that possible to do with social connect?



Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: Social Connect] Strange Yahoo! Login usernames’ is closed to new replies.