{"action":"opened","number":68,"pull_request":{"url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/pulls/68","id":30133629,"html_url":"https://github.com/saintedlama/passport-local-mongoose/pull/68","diff_url":"https://github.com/saintedlama/passport-local-mongoose/pull/68.diff","patch_url":"https://github.com/saintedlama/passport-local-mongoose/pull/68.patch","issue_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/issues/68","number":68,"state":"open","locked":false,"title":"checking for username field before trying to convert it toLowerCase","user":{"login":"Iheartweb","id":605886,"avatar_url":"https://avatars.githubusercontent.com/u/605886?v=3","gravatar_id":"","url":"https://api.github.com/users/Iheartweb","html_url":"https://github.com/Iheartweb","followers_url":"https://api.github.com/users/Iheartweb/followers","following_url":"https://api.github.com/users/Iheartweb/following{/other_user}","gists_url":"https://api.github.com/users/Iheartweb/gists{/gist_id}","starred_url":"https://api.github.com/users/Iheartweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Iheartweb/subscriptions","organizations_url":"https://api.github.com/users/Iheartweb/orgs","repos_url":"https://api.github.com/users/Iheartweb/repos","events_url":"https://api.github.com/users/Iheartweb/events{/privacy}","received_events_url":"https://api.github.com/users/Iheartweb/received_events","type":"User","site_admin":false},"body":"Fixes: #63 \r\n\r\nThere are uses-cases where the username field is not set when the document is first created. In these cases toLowerCase would result in `Uncaught TypeError: Cannot call method 'toLowerCase' of undefined`. This is a defensive fix.","created_at":"2015-02-27T01:13:25Z","updated_at":"2015-02-27T01:13:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/pulls/68/commits","review_comments_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/pulls/68/comments","review_comment_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/pulls/comments{/number}","comments_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/issues/68/comments","statuses_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/statuses/e9667a5c7b242d43faf360bc7ae3e5f24ae0d6a5","head":{"label":"Iheartweb:master","ref":"master","sha":"e9667a5c7b242d43faf360bc7ae3e5f24ae0d6a5","user":{"login":"Iheartweb","id":605886,"avatar_url":"https://avatars.githubusercontent.com/u/605886?v=3","gravatar_id":"","url":"https://api.github.com/users/Iheartweb","html_url":"https://github.com/Iheartweb","followers_url":"https://api.github.com/users/Iheartweb/followers","following_url":"https://api.github.com/users/Iheartweb/following{/other_user}","gists_url":"https://api.github.com/users/Iheartweb/gists{/gist_id}","starred_url":"https://api.github.com/users/Iheartweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Iheartweb/subscriptions","organizations_url":"https://api.github.com/users/Iheartweb/orgs","repos_url":"https://api.github.com/users/Iheartweb/repos","events_url":"https://api.github.com/users/Iheartweb/events{/privacy}","received_events_url":"https://api.github.com/users/Iheartweb/received_events","type":"User","site_admin":false},"repo":{"id":31396950,"name":"passport-local-mongoose","full_name":"Iheartweb/passport-local-mongoose","owner":{"login":"Iheartweb","id":605886,"avatar_url":"https://avatars.githubusercontent.com/u/605886?v=3","gravatar_id":"","url":"https://api.github.com/users/Iheartweb","html_url":"https://github.com/Iheartweb","followers_url":"https://api.github.com/users/Iheartweb/followers","following_url":"https://api.github.com/users/Iheartweb/following{/other_user}","gists_url":"https://api.github.com/users/Iheartweb/gists{/gist_id}","starred_url":"https://api.github.com/users/Iheartweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Iheartweb/subscriptions","organizations_url":"https://api.github.com/users/Iheartweb/orgs","repos_url":"https://api.github.com/users/Iheartweb/repos","events_url":"https://api.github.com/users/Iheartweb/events{/privacy}","received_events_url":"https://api.github.com/users/Iheartweb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Iheartweb/passport-local-mongoose","description":"Passport-Local Mongoose is a Mongoose plugin that simplifies building username and password login with Passport","fork":true,"url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose","forks_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/forks","keys_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/teams","hooks_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/hooks","issue_events_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/issues/events{/number}","events_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/events","assignees_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/assignees{/user}","branches_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/branches{/branch}","tags_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/tags","blobs_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/git/refs{/sha}","trees_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/statuses/{sha}","languages_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/languages","stargazers_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/stargazers","contributors_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/contributors","subscribers_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/subscribers","subscription_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/subscription","commits_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/commits{/sha}","git_commits_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/git/commits{/sha}","comments_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/comments{/number}","issue_comment_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/issues/comments{/number}","contents_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/contents/{+path}","compare_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/merges","archive_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/downloads","issues_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/issues{/number}","pulls_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/pulls{/number}","milestones_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/milestones{/number}","notifications_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/labels{/name}","releases_url":"https://api.github.com/repos/Iheartweb/passport-local-mongoose/releases{/id}","created_at":"2015-02-27T01:00:01Z","updated_at":"2015-02-27T01:08:30Z","pushed_at":"2015-02-27T01:08:30Z","git_url":"git://github.com/Iheartweb/passport-local-mongoose.git","ssh_url":"git@github.com:Iheartweb/passport-local-mongoose.git","clone_url":"https://github.com/Iheartweb/passport-local-mongoose.git","svn_url":"https://github.com/Iheartweb/passport-local-mongoose","homepage":"","size":763,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"saintedlama:master","ref":"master","sha":"3bd695824d5515d7909d4816972098cb75848fde","user":{"login":"saintedlama","id":123820,"avatar_url":"https://avatars.githubusercontent.com/u/123820?v=3","gravatar_id":"","url":"https://api.github.com/users/saintedlama","html_url":"https://github.com/saintedlama","followers_url":"https://api.github.com/users/saintedlama/followers","following_url":"https://api.github.com/users/saintedlama/following{/other_user}","gists_url":"https://api.github.com/users/saintedlama/gists{/gist_id}","starred_url":"https://api.github.com/users/saintedlama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saintedlama/subscriptions","organizations_url":"https://api.github.com/users/saintedlama/orgs","repos_url":"https://api.github.com/users/saintedlama/repos","events_url":"https://api.github.com/users/saintedlama/events{/privacy}","received_events_url":"https://api.github.com/users/saintedlama/received_events","type":"User","site_admin":false},"repo":{"id":6813456,"name":"passport-local-mongoose","full_name":"saintedlama/passport-local-mongoose","owner":{"login":"saintedlama","id":123820,"avatar_url":"https://avatars.githubusercontent.com/u/123820?v=3","gravatar_id":"","url":"https://api.github.com/users/saintedlama","html_url":"https://github.com/saintedlama","followers_url":"https://api.github.com/users/saintedlama/followers","following_url":"https://api.github.com/users/saintedlama/following{/other_user}","gists_url":"https://api.github.com/users/saintedlama/gists{/gist_id}","starred_url":"https://api.github.com/users/saintedlama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saintedlama/subscriptions","organizations_url":"https://api.github.com/users/saintedlama/orgs","repos_url":"https://api.github.com/users/saintedlama/repos","events_url":"https://api.github.com/users/saintedlama/events{/privacy}","received_events_url":"https://api.github.com/users/saintedlama/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/saintedlama/passport-local-mongoose","description":"Passport-Local Mongoose is a Mongoose plugin that simplifies building username and password login with Passport","fork":false,"url":"https://api.github.com/repos/saintedlama/passport-local-mongoose","forks_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/forks","keys_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/teams","hooks_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/hooks","issue_events_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/issues/events{/number}","events_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/events","assignees_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/assignees{/user}","branches_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/branches{/branch}","tags_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/tags","blobs_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/git/refs{/sha}","trees_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/statuses/{sha}","languages_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/languages","stargazers_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/stargazers","contributors_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/contributors","subscribers_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/subscribers","subscription_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/subscription","commits_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/commits{/sha}","git_commits_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/git/commits{/sha}","comments_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/comments{/number}","issue_comment_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/issues/comments{/number}","contents_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/contents/{+path}","compare_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/merges","archive_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/downloads","issues_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/issues{/number}","pulls_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/pulls{/number}","milestones_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/milestones{/number}","notifications_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/labels{/name}","releases_url":"https://api.github.com/repos/saintedlama/passport-local-mongoose/releases{/id}","created_at":"2012-11-22T13:25:04Z","updated_at":"2015-02-24T01:44:23Z","pushed_at":"2015-01-26T04:58:50Z","git_url":"git://github.com/saintedlama/passport-local-mongoose.git","ssh_url":"git@github.com:saintedlama/passport-local-mongoose.git","clone_url":"https://github.com/saintedlama/passport-local-mongoose.git","svn_url":"https://github.com/saintedlama/passport-local-mongoose","homepage":"","size":763,"stargazers_count":224,"watchers_count":224,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":74,"mirror_url":null,"open_issues_count":14,"forks":74,"open_issues":14,"watchers":224,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/saintedlama/passport-local-mongoose/pulls/68"},"html":{"href":"https://github.com/saintedlama/passport-local-mongoose/pull/68"},"issue":{"href":"https://api.github.com/repos/saintedlama/passport-local-mongoose/issues/68"},"comments":{"href":"https://api.github.com/repos/saintedlama/passport-local-mongoose/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/saintedlama/passport-local-mongoose/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/saintedlama/passport-local-mongoose/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/saintedlama/passport-local-mongoose/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/saintedlama/passport-local-mongoose/statuses/e9667a5c7b242d43faf360bc7ae3e5f24ae0d6a5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}