{"action":"created","comment":{"url":"https://api.github.com/repos/meumobi/sitebuilder/pulls/comments/34628495","id":34628495,"diff_hunk":"@@ -54,6 +54,19 @@ public function findByEmail($email)\n \t\t}\n \t}\n \n+\tpublic function findByEmailAndSite($email, $siteId)\n+\t{\n+\t\t$result = $this->collection()->findOne([\n+\t\t\t'email' => trim($email),","path":"sitebuilder/lib/meumobi/sitebuilder/repositories/VisitorsRepository.php","position":7,"original_position":7,"commit_id":"fae1ebb5421799118e6bc8746de48db1709f452b","original_commit_id":"fae1ebb5421799118e6bc8746de48db1709f452b","user":{"login":"elbidone","id":9011612,"avatar_url":"https://avatars.githubusercontent.com/u/9011612?v=3","gravatar_id":"","url":"https://api.github.com/users/elbidone","html_url":"https://github.com/elbidone","followers_url":"https://api.github.com/users/elbidone/followers","following_url":"https://api.github.com/users/elbidone/following{/other_user}","gists_url":"https://api.github.com/users/elbidone/gists{/gist_id}","starred_url":"https://api.github.com/users/elbidone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elbidone/subscriptions","organizations_url":"https://api.github.com/users/elbidone/orgs","repos_url":"https://api.github.com/users/elbidone/repos","events_url":"https://api.github.com/users/elbidone/events{/privacy}","received_events_url":"https://api.github.com/users/elbidone/received_events","type":"User","site_admin":false},"body":"you add a trim here but findByEmail and findForAuthentication continue without.\r\n\r\n@juliogreff is it possible to configure this trim on a lower level to not need to add it on each query we do ?\r\nThe case sensitiveness also should be concerned by the solution suggested, see #130 ","created_at":"2015-07-14T22:36:43Z","updated_at":"2015-07-14T22:36:43Z","html_url":"https://github.com/meumobi/sitebuilder/pull/145#discussion_r34628495","pull_request_url":"https://api.github.com/repos/meumobi/sitebuilder/pulls/145","_links":{"self":{"href":"https://api.github.com/repos/meumobi/sitebuilder/pulls/comments/34628495"},"html":{"href":"https://github.com/meumobi/sitebuilder/pull/145#discussion_r34628495"},"pull_request":{"href":"https://api.github.com/repos/meumobi/sitebuilder/pulls/145"}}},"pull_request":{"url":"https://api.github.com/repos/meumobi/sitebuilder/pulls/145","id":39408973,"html_url":"https://github.com/meumobi/sitebuilder/pull/145","diff_url":"https://github.com/meumobi/sitebuilder/pull/145.diff","patch_url":"https://github.com/meumobi/sitebuilder/pull/145.patch","issue_url":"https://api.github.com/repos/meumobi/sitebuilder/issues/145","number":145,"state":"open","locked":false,"title":"Add resend to import visitors","user":{"login":"t4deu","id":1649955,"avatar_url":"https://avatars.githubusercontent.com/u/1649955?v=3","gravatar_id":"","url":"https://api.github.com/users/t4deu","html_url":"https://github.com/t4deu","followers_url":"https://api.github.com/users/t4deu/followers","following_url":"https://api.github.com/users/t4deu/following{/other_user}","gists_url":"https://api.github.com/users/t4deu/gists{/gist_id}","starred_url":"https://api.github.com/users/t4deu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t4deu/subscriptions","organizations_url":"https://api.github.com/users/t4deu/orgs","repos_url":"https://api.github.com/users/t4deu/repos","events_url":"https://api.github.com/users/t4deu/events{/privacy}","received_events_url":"https://api.github.com/users/t4deu/received_events","type":"User","site_admin":false},"body":"Allow resend the visitor email whem importing visitors.\r\nTo reinvite visitors that din't recieved previous invite email.","created_at":"2015-07-07T19:46:43Z","updated_at":"2015-07-14T22:36:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"099bef98fcbd840ae8d27c9f6515d115758b00f2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/meumobi/sitebuilder/pulls/145/commits","review_comments_url":"https://api.github.com/repos/meumobi/sitebuilder/pulls/145/comments","review_comment_url":"https://api.github.com/repos/meumobi/sitebuilder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/meumobi/sitebuilder/issues/145/comments","statuses_url":"https://api.github.com/repos/meumobi/sitebuilder/statuses/fae1ebb5421799118e6bc8746de48db1709f452b","head":{"label":"meumobi:feat/add-resend-to-import_visitors","ref":"feat/add-resend-to-import_visitors","sha":"fae1ebb5421799118e6bc8746de48db1709f452b","user":{"login":"meumobi","id":4675304,"avatar_url":"https://avatars.githubusercontent.com/u/4675304?v=3","gravatar_id":"","url":"https://api.github.com/users/meumobi","html_url":"https://github.com/meumobi","followers_url":"https://api.github.com/users/meumobi/followers","following_url":"https://api.github.com/users/meumobi/following{/other_user}","gists_url":"https://api.github.com/users/meumobi/gists{/gist_id}","starred_url":"https://api.github.com/users/meumobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meumobi/subscriptions","organizations_url":"https://api.github.com/users/meumobi/orgs","repos_url":"https://api.github.com/users/meumobi/repos","events_url":"https://api.github.com/users/meumobi/events{/privacy}","received_events_url":"https://api.github.com/users/meumobi/received_events","type":"Organization","site_admin":false},"repo":{"id":26373485,"name":"sitebuilder","full_name":"meumobi/sitebuilder","owner":{"login":"meumobi","id":4675304,"avatar_url":"https://avatars.githubusercontent.com/u/4675304?v=3","gravatar_id":"","url":"https://api.github.com/users/meumobi","html_url":"https://github.com/meumobi","followers_url":"https://api.github.com/users/meumobi/followers","following_url":"https://api.github.com/users/meumobi/following{/other_user}","gists_url":"https://api.github.com/users/meumobi/gists{/gist_id}","starred_url":"https://api.github.com/users/meumobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meumobi/subscriptions","organizations_url":"https://api.github.com/users/meumobi/orgs","repos_url":"https://api.github.com/users/meumobi/repos","events_url":"https://api.github.com/users/meumobi/events{/privacy}","received_events_url":"https://api.github.com/users/meumobi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/meumobi/sitebuilder","description":"","fork":false,"url":"https://api.github.com/repos/meumobi/sitebuilder","forks_url":"https://api.github.com/repos/meumobi/sitebuilder/forks","keys_url":"https://api.github.com/repos/meumobi/sitebuilder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meumobi/sitebuilder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meumobi/sitebuilder/teams","hooks_url":"https://api.github.com/repos/meumobi/sitebuilder/hooks","issue_events_url":"https://api.github.com/repos/meumobi/sitebuilder/issues/events{/number}","events_url":"https://api.github.com/repos/meumobi/sitebuilder/events","assignees_url":"https://api.github.com/repos/meumobi/sitebuilder/assignees{/user}","branches_url":"https://api.github.com/repos/meumobi/sitebuilder/branches{/branch}","tags_url":"https://api.github.com/repos/meumobi/sitebuilder/tags","blobs_url":"https://api.github.com/repos/meumobi/sitebuilder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meumobi/sitebuilder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meumobi/sitebuilder/git/refs{/sha}","trees_url":"https://api.github.com/repos/meumobi/sitebuilder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meumobi/sitebuilder/statuses/{sha}","languages_url":"https://api.github.com/repos/meumobi/sitebuilder/languages","stargazers_url":"https://api.github.com/repos/meumobi/sitebuilder/stargazers","contributors_url":"https://api.github.com/repos/meumobi/sitebuilder/contributors","subscribers_url":"https://api.github.com/repos/meumobi/sitebuilder/subscribers","subscription_url":"https://api.github.com/repos/meumobi/sitebuilder/subscription","commits_url":"https://api.github.com/repos/meumobi/sitebuilder/commits{/sha}","git_commits_url":"https://api.github.com/repos/meumobi/sitebuilder/git/commits{/sha}","comments_url":"https://api.github.com/repos/meumobi/sitebuilder/comments{/number}","issue_comment_url":"https://api.github.com/repos/meumobi/sitebuilder/issues/comments{/number}","contents_url":"https://api.github.com/repos/meumobi/sitebuilder/contents/{+path}","compare_url":"https://api.github.com/repos/meumobi/sitebuilder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meumobi/sitebuilder/merges","archive_url":"https://api.github.com/repos/meumobi/sitebuilder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meumobi/sitebuilder/downloads","issues_url":"https://api.github.com/repos/meumobi/sitebuilder/issues{/number}","pulls_url":"https://api.github.com/repos/meumobi/sitebuilder/pulls{/number}","milestones_url":"https://api.github.com/repos/meumobi/sitebuilder/milestones{/number}","notifications_url":"https://api.github.com/repos/meumobi/sitebuilder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meumobi/sitebuilder/labels{/name}","releases_url":"https://api.github.com/repos/meumobi/sitebuilder/releases{/id}","created_at":"2014-11-08T20:21:22Z","updated_at":"2015-05-08T19:11:50Z","pushed_at":"2015-07-14T21:52:42Z","git_url":"git://github.com/meumobi/sitebuilder.git","ssh_url":"git@github.com:meumobi/sitebuilder.git","clone_url":"https://github.com/meumobi/sitebuilder.git","svn_url":"https://github.com/meumobi/sitebuilder","homepage":null,"size":17752,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":60,"forks":0,"open_issues":60,"watchers":0,"default_branch":"master"}},"base":{"label":"meumobi:master","ref":"master","sha":"134d6e7f158ab7417fc4d3edbf7ba6ecf62528fd","user":{"login":"meumobi","id":4675304,"avatar_url":"https://avatars.githubusercontent.com/u/4675304?v=3","gravatar_id":"","url":"https://api.github.com/users/meumobi","html_url":"https://github.com/meumobi","followers_url":"https://api.github.com/users/meumobi/followers","following_url":"https://api.github.com/users/meumobi/following{/other_user}","gists_url":"https://api.github.com/users/meumobi/gists{/gist_id}","starred_url":"https://api.github.com/users/meumobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meumobi/subscriptions","organizations_url":"https://api.github.com/users/meumobi/orgs","repos_url":"https://api.github.com/users/meumobi/repos","events_url":"https://api.github.com/users/meumobi/events{/privacy}","received_events_url":"https://api.github.com/users/meumobi/received_events","type":"Organization","site_admin":false},"repo":{"id":26373485,"name":"sitebuilder","full_name":"meumobi/sitebuilder","owner":{"login":"meumobi","id":4675304,"avatar_url":"https://avatars.githubusercontent.com/u/4675304?v=3","gravatar_id":"","url":"https://api.github.com/users/meumobi","html_url":"https://github.com/meumobi","followers_url":"https://api.github.com/users/meumobi/followers","following_url":"https://api.github.com/users/meumobi/following{/other_user}","gists_url":"https://api.github.com/users/meumobi/gists{/gist_id}","starred_url":"https://api.github.com/users/meumobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meumobi/subscriptions","organizations_url":"https://api.github.com/users/meumobi/orgs","repos_url":"https://api.github.com/users/meumobi/repos","events_url":"https://api.github.com/users/meumobi/events{/privacy}","received_events_url":"https://api.github.com/users/meumobi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/meumobi/sitebuilder","description":"","fork":false,"url":"https://api.github.com/repos/meumobi/sitebuilder","forks_url":"https://api.github.com/repos/meumobi/sitebuilder/forks","keys_url":"https://api.github.com/repos/meumobi/sitebuilder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meumobi/sitebuilder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meumobi/sitebuilder/teams","hooks_url":"https://api.github.com/repos/meumobi/sitebuilder/hooks","issue_events_url":"https://api.github.com/repos/meumobi/sitebuilder/issues/events{/number}","events_url":"https://api.github.com/repos/meumobi/sitebuilder/events","assignees_url":"https://api.github.com/repos/meumobi/sitebuilder/assignees{/user}","branches_url":"https://api.github.com/repos/meumobi/sitebuilder/branches{/branch}","tags_url":"https://api.github.com/repos/meumobi/sitebuilder/tags","blobs_url":"https://api.github.com/repos/meumobi/sitebuilder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meumobi/sitebuilder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meumobi/sitebuilder/git/refs{/sha}","trees_url":"https://api.github.com/repos/meumobi/sitebuilder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meumobi/sitebuilder/statuses/{sha}","languages_url":"https://api.github.com/repos/meumobi/sitebuilder/languages","stargazers_url":"https://api.github.com/repos/meumobi/sitebuilder/stargazers","contributors_url":"https://api.github.com/repos/meumobi/sitebuilder/contributors","subscribers_url":"https://api.github.com/repos/meumobi/sitebuilder/subscribers","subscription_url":"https://api.github.com/repos/meumobi/sitebuilder/subscription","commits_url":"https://api.github.com/repos/meumobi/sitebuilder/commits{/sha}","git_commits_url":"https://api.github.com/repos/meumobi/sitebuilder/git/commits{/sha}","comments_url":"https://api.github.com/repos/meumobi/sitebuilder/comments{/number}","issue_comment_url":"https://api.github.com/repos/meumobi/sitebuilder/issues/comments{/number}","contents_url":"https://api.github.com/repos/meumobi/sitebuilder/contents/{+path}","compare_url":"https://api.github.com/repos/meumobi/sitebuilder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meumobi/sitebuilder/merges","archive_url":"https://api.github.com/repos/meumobi/sitebuilder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meumobi/sitebuilder/downloads","issues_url":"https://api.github.com/repos/meumobi/sitebuilder/issues{/number}","pulls_url":"https://api.github.com/repos/meumobi/sitebuilder/pulls{/number}","milestones_url":"https://api.github.com/repos/meumobi/sitebuilder/milestones{/number}","notifications_url":"https://api.github.com/repos/meumobi/sitebuilder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meumobi/sitebuilder/labels{/name}","releases_url":"https://api.github.com/repos/meumobi/sitebuilder/releases{/id}","created_at":"2014-11-08T20:21:22Z","updated_at":"2015-05-08T19:11:50Z","pushed_at":"2015-07-14T21:52:42Z","git_url":"git://github.com/meumobi/sitebuilder.git","ssh_url":"git@github.com:meumobi/sitebuilder.git","clone_url":"https://github.com/meumobi/sitebuilder.git","svn_url":"https://github.com/meumobi/sitebuilder","homepage":null,"size":17752,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":60,"forks":0,"open_issues":60,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/meumobi/sitebuilder/pulls/145"},"html":{"href":"https://github.com/meumobi/sitebuilder/pull/145"},"issue":{"href":"https://api.github.com/repos/meumobi/sitebuilder/issues/145"},"comments":{"href":"https://api.github.com/repos/meumobi/sitebuilder/issues/145/comments"},"review_comments":{"href":"https://api.github.com/repos/meumobi/sitebuilder/pulls/145/comments"},"review_comment":{"href":"https://api.github.com/repos/meumobi/sitebuilder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/meumobi/sitebuilder/pulls/145/commits"},"statuses":{"href":"https://api.github.com/repos/meumobi/sitebuilder/statuses/fae1ebb5421799118e6bc8746de48db1709f452b"}}}}