WordPress.org

Ready to get started?Download WordPress

Forums

Social Connect
[resolved] Strange Yahoo! Login usernames (4 posts)

  1. mikejandreau
    Member
    Posted 3 years ago #

    In my testing, I'm seeing that anyone that connects using Yahoo gets a strange username, such as sc_74ec9945a8d71524cc73090700090461

    Any idea why that is, and how we can get a normal username for these folks?

    http://wordpress.org/extend/plugins/social-connect/

  2. geodanny
    Member
    Posted 3 years ago #

    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.

  3. thenbrent
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  4. raymasa
    Member
    Posted 2 years ago #

    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?

    Thanks,

    Ray

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic