{"action":"opened","number":76,"pull_request":{"url":"https://api.github.com/repos/rodrigoprimo/social-connect/pulls/76","id":29672261,"html_url":"https://github.com/rodrigoprimo/social-connect/pull/76","diff_url":"https://github.com/rodrigoprimo/social-connect/pull/76.diff","patch_url":"https://github.com/rodrigoprimo/social-connect/pull/76.patch","issue_url":"https://api.github.com/repos/rodrigoprimo/social-connect/issues/76","number":76,"state":"open","locked":false,"title":"Allow for custom user_login values via social_connect_user_login filter","user":{"login":"haroldkyle","id":2402898,"avatar_url":"https://avatars.githubusercontent.com/u/2402898?v=3","gravatar_id":"","url":"https://api.github.com/users/haroldkyle","html_url":"https://github.com/haroldkyle","followers_url":"https://api.github.com/users/haroldkyle/followers","following_url":"https://api.github.com/users/haroldkyle/following{/other_user}","gists_url":"https://api.github.com/users/haroldkyle/gists{/gist_id}","starred_url":"https://api.github.com/users/haroldkyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haroldkyle/subscriptions","organizations_url":"https://api.github.com/users/haroldkyle/orgs","repos_url":"https://api.github.com/users/haroldkyle/repos","events_url":"https://api.github.com/users/haroldkyle/events{/privacy}","received_events_url":"https://api.github.com/users/haroldkyle/received_events","type":"User","site_admin":false},"body":"Fixes #41\r\n\r\nThe open issue #41 suggested making this an option in the settings, but this could lead to confusion. (An option might mislead site admins that they are making email addresses the user_login everyone on the site, when this would only affect new registrations via SSO.)\r\n\r\nInstead, I have introduced a filter that gives developers (who will know better, *right?*) the ability to modify the `user_login` value before the new user is inserted. In the case of creating an email login, they can just add this to the `functions.php`:\r\n```\r\nadd_filter('social_connect_user_login', function( $user_login, $sc_email, $sc_first_name, $sc_last_name, $social_connect_provider ){\r\n\treturn $sc_email;\r\n},10,5);\r\n```\r\nQuick, painless, and solves the problem at hand. :)","created_at":"2015-02-20T04:24:51Z","updated_at":"2015-02-20T04:24:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rodrigoprimo/social-connect/pulls/76/commits","review_comments_url":"https://api.github.com/repos/rodrigoprimo/social-connect/pulls/76/comments","review_comment_url":"https://api.github.com/repos/rodrigoprimo/social-connect/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rodrigoprimo/social-connect/issues/76/comments","statuses_url":"https://api.github.com/repos/rodrigoprimo/social-connect/statuses/d00a822a14c13c56772aa7f2d4d12def8b3b76cb","head":{"label":"haroldkyle:master","ref":"master","sha":"d00a822a14c13c56772aa7f2d4d12def8b3b76cb","user":{"login":"haroldkyle","id":2402898,"avatar_url":"https://avatars.githubusercontent.com/u/2402898?v=3","gravatar_id":"","url":"https://api.github.com/users/haroldkyle","html_url":"https://github.com/haroldkyle","followers_url":"https://api.github.com/users/haroldkyle/followers","following_url":"https://api.github.com/users/haroldkyle/following{/other_user}","gists_url":"https://api.github.com/users/haroldkyle/gists{/gist_id}","starred_url":"https://api.github.com/users/haroldkyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haroldkyle/subscriptions","organizations_url":"https://api.github.com/users/haroldkyle/orgs","repos_url":"https://api.github.com/users/haroldkyle/repos","events_url":"https://api.github.com/users/haroldkyle/events{/privacy}","received_events_url":"https://api.github.com/users/haroldkyle/received_events","type":"User","site_admin":false},"repo":{"id":31033533,"name":"social-connect","full_name":"haroldkyle/social-connect","owner":{"login":"haroldkyle","id":2402898,"avatar_url":"https://avatars.githubusercontent.com/u/2402898?v=3","gravatar_id":"","url":"https://api.github.com/users/haroldkyle","html_url":"https://github.com/haroldkyle","followers_url":"https://api.github.com/users/haroldkyle/followers","following_url":"https://api.github.com/users/haroldkyle/following{/other_user}","gists_url":"https://api.github.com/users/haroldkyle/gists{/gist_id}","starred_url":"https://api.github.com/users/haroldkyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haroldkyle/subscriptions","organizations_url":"https://api.github.com/users/haroldkyle/orgs","repos_url":"https://api.github.com/users/haroldkyle/repos","events_url":"https://api.github.com/users/haroldkyle/events{/privacy}","received_events_url":"https://api.github.com/users/haroldkyle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/haroldkyle/social-connect","description":"WordPress plugin for signup/login using social media providers.","fork":true,"url":"https://api.github.com/repos/haroldkyle/social-connect","forks_url":"https://api.github.com/repos/haroldkyle/social-connect/forks","keys_url":"https://api.github.com/repos/haroldkyle/social-connect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haroldkyle/social-connect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haroldkyle/social-connect/teams","hooks_url":"https://api.github.com/repos/haroldkyle/social-connect/hooks","issue_events_url":"https://api.github.com/repos/haroldkyle/social-connect/issues/events{/number}","events_url":"https://api.github.com/repos/haroldkyle/social-connect/events","assignees_url":"https://api.github.com/repos/haroldkyle/social-connect/assignees{/user}","branches_url":"https://api.github.com/repos/haroldkyle/social-connect/branches{/branch}","tags_url":"https://api.github.com/repos/haroldkyle/social-connect/tags","blobs_url":"https://api.github.com/repos/haroldkyle/social-connect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haroldkyle/social-connect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haroldkyle/social-connect/git/refs{/sha}","trees_url":"https://api.github.com/repos/haroldkyle/social-connect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haroldkyle/social-connect/statuses/{sha}","languages_url":"https://api.github.com/repos/haroldkyle/social-connect/languages","stargazers_url":"https://api.github.com/repos/haroldkyle/social-connect/stargazers","contributors_url":"https://api.github.com/repos/haroldkyle/social-connect/contributors","subscribers_url":"https://api.github.com/repos/haroldkyle/social-connect/subscribers","subscription_url":"https://api.github.com/repos/haroldkyle/social-connect/subscription","commits_url":"https://api.github.com/repos/haroldkyle/social-connect/commits{/sha}","git_commits_url":"https://api.github.com/repos/haroldkyle/social-connect/git/commits{/sha}","comments_url":"https://api.github.com/repos/haroldkyle/social-connect/comments{/number}","issue_comment_url":"https://api.github.com/repos/haroldkyle/social-connect/issues/comments/{number}","contents_url":"https://api.github.com/repos/haroldkyle/social-connect/contents/{+path}","compare_url":"https://api.github.com/repos/haroldkyle/social-connect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haroldkyle/social-connect/merges","archive_url":"https://api.github.com/repos/haroldkyle/social-connect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haroldkyle/social-connect/downloads","issues_url":"https://api.github.com/repos/haroldkyle/social-connect/issues{/number}","pulls_url":"https://api.github.com/repos/haroldkyle/social-connect/pulls{/number}","milestones_url":"https://api.github.com/repos/haroldkyle/social-connect/milestones{/number}","notifications_url":"https://api.github.com/repos/haroldkyle/social-connect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haroldkyle/social-connect/labels{/name}","releases_url":"https://api.github.com/repos/haroldkyle/social-connect/releases{/id}","created_at":"2015-02-19T19:50:12Z","updated_at":"2015-02-20T04:17:20Z","pushed_at":"2015-02-20T04:17:20Z","git_url":"git://github.com/haroldkyle/social-connect.git","ssh_url":"git@github.com:haroldkyle/social-connect.git","clone_url":"https://github.com/haroldkyle/social-connect.git","svn_url":"https://github.com/haroldkyle/social-connect","homepage":"http://wordpress.org/extend/plugins/social-connect/","size":1307,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rodrigoprimo:master","ref":"master","sha":"db6dcc396d2965125d8e3fb95575819ec0b5e103","user":{"login":"rodrigoprimo","id":77215,"avatar_url":"https://avatars.githubusercontent.com/u/77215?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigoprimo","html_url":"https://github.com/rodrigoprimo","followers_url":"https://api.github.com/users/rodrigoprimo/followers","following_url":"https://api.github.com/users/rodrigoprimo/following{/other_user}","gists_url":"https://api.github.com/users/rodrigoprimo/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigoprimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigoprimo/subscriptions","organizations_url":"https://api.github.com/users/rodrigoprimo/orgs","repos_url":"https://api.github.com/users/rodrigoprimo/repos","events_url":"https://api.github.com/users/rodrigoprimo/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigoprimo/received_events","type":"User","site_admin":false},"repo":{"id":1535791,"name":"social-connect","full_name":"rodrigoprimo/social-connect","owner":{"login":"rodrigoprimo","id":77215,"avatar_url":"https://avatars.githubusercontent.com/u/77215?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigoprimo","html_url":"https://github.com/rodrigoprimo","followers_url":"https://api.github.com/users/rodrigoprimo/followers","following_url":"https://api.github.com/users/rodrigoprimo/following{/other_user}","gists_url":"https://api.github.com/users/rodrigoprimo/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigoprimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigoprimo/subscriptions","organizations_url":"https://api.github.com/users/rodrigoprimo/orgs","repos_url":"https://api.github.com/users/rodrigoprimo/repos","events_url":"https://api.github.com/users/rodrigoprimo/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigoprimo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rodrigoprimo/social-connect","description":"WordPress plugin for signup/login using social media providers.","fork":false,"url":"https://api.github.com/repos/rodrigoprimo/social-connect","forks_url":"https://api.github.com/repos/rodrigoprimo/social-connect/forks","keys_url":"https://api.github.com/repos/rodrigoprimo/social-connect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rodrigoprimo/social-connect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rodrigoprimo/social-connect/teams","hooks_url":"https://api.github.com/repos/rodrigoprimo/social-connect/hooks","issue_events_url":"https://api.github.com/repos/rodrigoprimo/social-connect/issues/events{/number}","events_url":"https://api.github.com/repos/rodrigoprimo/social-connect/events","assignees_url":"https://api.github.com/repos/rodrigoprimo/social-connect/assignees{/user}","branches_url":"https://api.github.com/repos/rodrigoprimo/social-connect/branches{/branch}","tags_url":"https://api.github.com/repos/rodrigoprimo/social-connect/tags","blobs_url":"https://api.github.com/repos/rodrigoprimo/social-connect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rodrigoprimo/social-connect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rodrigoprimo/social-connect/git/refs{/sha}","trees_url":"https://api.github.com/repos/rodrigoprimo/social-connect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rodrigoprimo/social-connect/statuses/{sha}","languages_url":"https://api.github.com/repos/rodrigoprimo/social-connect/languages","stargazers_url":"https://api.github.com/repos/rodrigoprimo/social-connect/stargazers","contributors_url":"https://api.github.com/repos/rodrigoprimo/social-connect/contributors","subscribers_url":"https://api.github.com/repos/rodrigoprimo/social-connect/subscribers","subscription_url":"https://api.github.com/repos/rodrigoprimo/social-connect/subscription","commits_url":"https://api.github.com/repos/rodrigoprimo/social-connect/commits{/sha}","git_commits_url":"https://api.github.com/repos/rodrigoprimo/social-connect/git/commits{/sha}","comments_url":"https://api.github.com/repos/rodrigoprimo/social-connect/comments{/number}","issue_comment_url":"https://api.github.com/repos/rodrigoprimo/social-connect/issues/comments/{number}","contents_url":"https://api.github.com/repos/rodrigoprimo/social-connect/contents/{+path}","compare_url":"https://api.github.com/repos/rodrigoprimo/social-connect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rodrigoprimo/social-connect/merges","archive_url":"https://api.github.com/repos/rodrigoprimo/social-connect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rodrigoprimo/social-connect/downloads","issues_url":"https://api.github.com/repos/rodrigoprimo/social-connect/issues{/number}","pulls_url":"https://api.github.com/repos/rodrigoprimo/social-connect/pulls{/number}","milestones_url":"https://api.github.com/repos/rodrigoprimo/social-connect/milestones{/number}","notifications_url":"https://api.github.com/repos/rodrigoprimo/social-connect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rodrigoprimo/social-connect/labels{/name}","releases_url":"https://api.github.com/repos/rodrigoprimo/social-connect/releases{/id}","created_at":"2011-03-28T08:36:56Z","updated_at":"2015-01-29T00:23:27Z","pushed_at":"2014-12-12T11:15:06Z","git_url":"git://github.com/rodrigoprimo/social-connect.git","ssh_url":"git@github.com:rodrigoprimo/social-connect.git","clone_url":"https://github.com/rodrigoprimo/social-connect.git","svn_url":"https://github.com/rodrigoprimo/social-connect","homepage":"http://wordpress.org/extend/plugins/social-connect/","size":1735,"stargazers_count":70,"watchers_count":70,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":17,"forks":42,"open_issues":17,"watchers":70,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rodrigoprimo/social-connect/pulls/76"},"html":{"href":"https://github.com/rodrigoprimo/social-connect/pull/76"},"issue":{"href":"https://api.github.com/repos/rodrigoprimo/social-connect/issues/76"},"comments":{"href":"https://api.github.com/repos/rodrigoprimo/social-connect/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/rodrigoprimo/social-connect/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/rodrigoprimo/social-connect/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rodrigoprimo/social-connect/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/rodrigoprimo/social-connect/statuses/d00a822a14c13c56772aa7f2d4d12def8b3b76cb"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":0,"changed_files":1}}