{"action":"created","comment":{"url":"https://api.github.com/repos/vizorvr/vizor/pulls/comments/40259982","id":40259982,"diff_hunk":"@@ -134,5 +262,115 @@ AccountController.prototype.openSignupModal = function(dfd) {\n \treturn dfd.promise\n }\n \n+AccountController.prototype.openForgotPasswordModal = function(dfd) {\n+\tvar that = this;\n+\tvar dfd = dfd || when.defer();\n+\tvar forgotTemplate = E2.views.account.forgot;\n+\t\n+\tga('send', 'event', 'account', 'open', 'forgotModal');\n+\t\n+\tvar bb = bootbox.dialog(\n+\t{\n+\t\tshow: true,\n+\t\tanimate: false,\n+\t\tmessage: 'Rendering',\n+\t}).init(function() {\n+\t\tE2.app.useCustomBootboxTemplate(forgotTemplate);\n+\t});\n+\n+\tthis._bindEvents(bb, dfd);\n+\t\n+\tvar formEl = $('#forgot-form_id');\n+\tformEl.submit(function( event )\n+\t{\n+\t\tevent.preventDefault();\n+\t\t\n+\t\tif (!that.isValidEmail(formEl.find('#email_id').val())) {\n+\t\t\tvar errText = 'Whoops! This isn\\'t a valid email address';\n+\t\t\tthat.showError('email',errText);\n+\t\t\treturn;\n+\t\t}\n+\n+\t\tvar formData = formEl.serialize();\n+\n+\t\t$.ajax(\n+\t\t{\n+\t\t\ttype: \"POST\",\n+\t\t\turl: formEl.attr('action'),\n+\t\t\tdata: formData,\n+\t\t\terror: function(err)\n+\t\t\t{\t\n+\t\t\t\tvar errText = 'Whoops! This email isn\\'t registered'\n+\t\t\t\tthat.showError('general',errText);\n+\t\t\t},\n+\t\t\tsuccess: function(user)\n+\t\t\t{\n+\t\t\t\tga('send', 'event', 'account', 'passwordReset', user.username)\n+\t\t\t\tbootbox.hideAll();\n+\t\t\t\tbootbox.alert('Instructions has been sent. Please check your email.');","path":"browser/scripts/account-controller.js","position":306,"original_position":306,"commit_id":"ca7b654a157f914209fb2af5df860cbe9622c132","original_commit_id":"ca7b654a157f914209fb2af5df860cbe9622c132","user":{"login":"kkananen","id":1742765,"avatar_url":"https://avatars.githubusercontent.com/u/1742765?v=3","gravatar_id":"","url":"https://api.github.com/users/kkananen","html_url":"https://github.com/kkananen","followers_url":"https://api.github.com/users/kkananen/followers","following_url":"https://api.github.com/users/kkananen/following{/other_user}","gists_url":"https://api.github.com/users/kkananen/gists{/gist_id}","starred_url":"https://api.github.com/users/kkananen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkananen/subscriptions","organizations_url":"https://api.github.com/users/kkananen/orgs","repos_url":"https://api.github.com/users/kkananen/repos","events_url":"https://api.github.com/users/kkananen/events{/privacy}","received_events_url":"https://api.github.com/users/kkananen/received_events","type":"User","site_admin":false},"body":"have been sent?","created_at":"2015-09-23T21:27:20Z","updated_at":"2015-09-23T21:27:20Z","html_url":"https://github.com/vizorvr/vizor/pull/506#discussion_r40259982","pull_request_url":"https://api.github.com/repos/vizorvr/vizor/pulls/506","_links":{"self":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/comments/40259982"},"html":{"href":"https://github.com/vizorvr/vizor/pull/506#discussion_r40259982"},"pull_request":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/506"}}},"pull_request":{"url":"https://api.github.com/repos/vizorvr/vizor/pulls/506","id":45833218,"html_url":"https://github.com/vizorvr/vizor/pull/506","diff_url":"https://github.com/vizorvr/vizor/pull/506.diff","patch_url":"https://github.com/vizorvr/vizor/pull/506.patch","issue_url":"https://api.github.com/repos/vizorvr/vizor/issues/506","number":506,"state":"open","locked":false,"title":"Newui","user":{"login":"kschzt","id":293426,"avatar_url":"https://avatars.githubusercontent.com/u/293426?v=3","gravatar_id":"","url":"https://api.github.com/users/kschzt","html_url":"https://github.com/kschzt","followers_url":"https://api.github.com/users/kschzt/followers","following_url":"https://api.github.com/users/kschzt/following{/other_user}","gists_url":"https://api.github.com/users/kschzt/gists{/gist_id}","starred_url":"https://api.github.com/users/kschzt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kschzt/subscriptions","organizations_url":"https://api.github.com/users/kschzt/orgs","repos_url":"https://api.github.com/users/kschzt/repos","events_url":"https://api.github.com/users/kschzt/events{/privacy}","received_events_url":"https://api.github.com/users/kschzt/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-23T21:20:51Z","updated_at":"2015-09-23T21:27:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"618288c7785fcc3058049e94819f6efb778504e2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vizorvr/vizor/pulls/506/commits","review_comments_url":"https://api.github.com/repos/vizorvr/vizor/pulls/506/comments","review_comment_url":"https://api.github.com/repos/vizorvr/vizor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vizorvr/vizor/issues/506/comments","statuses_url":"https://api.github.com/repos/vizorvr/vizor/statuses/ca7b654a157f914209fb2af5df860cbe9622c132","head":{"label":"vizorvr:newui","ref":"newui","sha":"ca7b654a157f914209fb2af5df860cbe9622c132","user":{"login":"vizorvr","id":10456166,"avatar_url":"https://avatars.githubusercontent.com/u/10456166?v=3","gravatar_id":"","url":"https://api.github.com/users/vizorvr","html_url":"https://github.com/vizorvr","followers_url":"https://api.github.com/users/vizorvr/followers","following_url":"https://api.github.com/users/vizorvr/following{/other_user}","gists_url":"https://api.github.com/users/vizorvr/gists{/gist_id}","starred_url":"https://api.github.com/users/vizorvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vizorvr/subscriptions","organizations_url":"https://api.github.com/users/vizorvr/orgs","repos_url":"https://api.github.com/users/vizorvr/repos","events_url":"https://api.github.com/users/vizorvr/events{/privacy}","received_events_url":"https://api.github.com/users/vizorvr/received_events","type":"Organization","site_admin":false},"repo":{"id":29096746,"name":"vizor","full_name":"vizorvr/vizor","owner":{"login":"vizorvr","id":10456166,"avatar_url":"https://avatars.githubusercontent.com/u/10456166?v=3","gravatar_id":"","url":"https://api.github.com/users/vizorvr","html_url":"https://github.com/vizorvr","followers_url":"https://api.github.com/users/vizorvr/followers","following_url":"https://api.github.com/users/vizorvr/following{/other_user}","gists_url":"https://api.github.com/users/vizorvr/gists{/gist_id}","starred_url":"https://api.github.com/users/vizorvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vizorvr/subscriptions","organizations_url":"https://api.github.com/users/vizorvr/orgs","repos_url":"https://api.github.com/users/vizorvr/repos","events_url":"https://api.github.com/users/vizorvr/events{/privacy}","received_events_url":"https://api.github.com/users/vizorvr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vizorvr/vizor","description":"Vizor is a platform for creating and sharing WebVR content","fork":false,"url":"https://api.github.com/repos/vizorvr/vizor","forks_url":"https://api.github.com/repos/vizorvr/vizor/forks","keys_url":"https://api.github.com/repos/vizorvr/vizor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vizorvr/vizor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vizorvr/vizor/teams","hooks_url":"https://api.github.com/repos/vizorvr/vizor/hooks","issue_events_url":"https://api.github.com/repos/vizorvr/vizor/issues/events{/number}","events_url":"https://api.github.com/repos/vizorvr/vizor/events","assignees_url":"https://api.github.com/repos/vizorvr/vizor/assignees{/user}","branches_url":"https://api.github.com/repos/vizorvr/vizor/branches{/branch}","tags_url":"https://api.github.com/repos/vizorvr/vizor/tags","blobs_url":"https://api.github.com/repos/vizorvr/vizor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vizorvr/vizor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vizorvr/vizor/git/refs{/sha}","trees_url":"https://api.github.com/repos/vizorvr/vizor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vizorvr/vizor/statuses/{sha}","languages_url":"https://api.github.com/repos/vizorvr/vizor/languages","stargazers_url":"https://api.github.com/repos/vizorvr/vizor/stargazers","contributors_url":"https://api.github.com/repos/vizorvr/vizor/contributors","subscribers_url":"https://api.github.com/repos/vizorvr/vizor/subscribers","subscription_url":"https://api.github.com/repos/vizorvr/vizor/subscription","commits_url":"https://api.github.com/repos/vizorvr/vizor/commits{/sha}","git_commits_url":"https://api.github.com/repos/vizorvr/vizor/git/commits{/sha}","comments_url":"https://api.github.com/repos/vizorvr/vizor/comments{/number}","issue_comment_url":"https://api.github.com/repos/vizorvr/vizor/issues/comments{/number}","contents_url":"https://api.github.com/repos/vizorvr/vizor/contents/{+path}","compare_url":"https://api.github.com/repos/vizorvr/vizor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vizorvr/vizor/merges","archive_url":"https://api.github.com/repos/vizorvr/vizor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vizorvr/vizor/downloads","issues_url":"https://api.github.com/repos/vizorvr/vizor/issues{/number}","pulls_url":"https://api.github.com/repos/vizorvr/vizor/pulls{/number}","milestones_url":"https://api.github.com/repos/vizorvr/vizor/milestones{/number}","notifications_url":"https://api.github.com/repos/vizorvr/vizor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vizorvr/vizor/labels{/name}","releases_url":"https://api.github.com/repos/vizorvr/vizor/releases{/id}","created_at":"2015-01-11T15:54:34Z","updated_at":"2015-09-23T11:36:40Z","pushed_at":"2015-09-23T21:20:51Z","git_url":"git://github.com/vizorvr/vizor.git","ssh_url":"git@github.com:vizorvr/vizor.git","clone_url":"https://github.com/vizorvr/vizor.git","svn_url":"https://github.com/vizorvr/vizor","homepage":"http://vizor.io","size":37987,"stargazers_count":51,"watchers_count":51,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":96,"forks":4,"open_issues":96,"watchers":51,"default_branch":"master"}},"base":{"label":"vizorvr:develop","ref":"develop","sha":"c44c5165ec78eec0ab38e0b514dda89eedf9f2cb","user":{"login":"vizorvr","id":10456166,"avatar_url":"https://avatars.githubusercontent.com/u/10456166?v=3","gravatar_id":"","url":"https://api.github.com/users/vizorvr","html_url":"https://github.com/vizorvr","followers_url":"https://api.github.com/users/vizorvr/followers","following_url":"https://api.github.com/users/vizorvr/following{/other_user}","gists_url":"https://api.github.com/users/vizorvr/gists{/gist_id}","starred_url":"https://api.github.com/users/vizorvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vizorvr/subscriptions","organizations_url":"https://api.github.com/users/vizorvr/orgs","repos_url":"https://api.github.com/users/vizorvr/repos","events_url":"https://api.github.com/users/vizorvr/events{/privacy}","received_events_url":"https://api.github.com/users/vizorvr/received_events","type":"Organization","site_admin":false},"repo":{"id":29096746,"name":"vizor","full_name":"vizorvr/vizor","owner":{"login":"vizorvr","id":10456166,"avatar_url":"https://avatars.githubusercontent.com/u/10456166?v=3","gravatar_id":"","url":"https://api.github.com/users/vizorvr","html_url":"https://github.com/vizorvr","followers_url":"https://api.github.com/users/vizorvr/followers","following_url":"https://api.github.com/users/vizorvr/following{/other_user}","gists_url":"https://api.github.com/users/vizorvr/gists{/gist_id}","starred_url":"https://api.github.com/users/vizorvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vizorvr/subscriptions","organizations_url":"https://api.github.com/users/vizorvr/orgs","repos_url":"https://api.github.com/users/vizorvr/repos","events_url":"https://api.github.com/users/vizorvr/events{/privacy}","received_events_url":"https://api.github.com/users/vizorvr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vizorvr/vizor","description":"Vizor is a platform for creating and sharing WebVR content","fork":false,"url":"https://api.github.com/repos/vizorvr/vizor","forks_url":"https://api.github.com/repos/vizorvr/vizor/forks","keys_url":"https://api.github.com/repos/vizorvr/vizor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vizorvr/vizor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vizorvr/vizor/teams","hooks_url":"https://api.github.com/repos/vizorvr/vizor/hooks","issue_events_url":"https://api.github.com/repos/vizorvr/vizor/issues/events{/number}","events_url":"https://api.github.com/repos/vizorvr/vizor/events","assignees_url":"https://api.github.com/repos/vizorvr/vizor/assignees{/user}","branches_url":"https://api.github.com/repos/vizorvr/vizor/branches{/branch}","tags_url":"https://api.github.com/repos/vizorvr/vizor/tags","blobs_url":"https://api.github.com/repos/vizorvr/vizor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vizorvr/vizor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vizorvr/vizor/git/refs{/sha}","trees_url":"https://api.github.com/repos/vizorvr/vizor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vizorvr/vizor/statuses/{sha}","languages_url":"https://api.github.com/repos/vizorvr/vizor/languages","stargazers_url":"https://api.github.com/repos/vizorvr/vizor/stargazers","contributors_url":"https://api.github.com/repos/vizorvr/vizor/contributors","subscribers_url":"https://api.github.com/repos/vizorvr/vizor/subscribers","subscription_url":"https://api.github.com/repos/vizorvr/vizor/subscription","commits_url":"https://api.github.com/repos/vizorvr/vizor/commits{/sha}","git_commits_url":"https://api.github.com/repos/vizorvr/vizor/git/commits{/sha}","comments_url":"https://api.github.com/repos/vizorvr/vizor/comments{/number}","issue_comment_url":"https://api.github.com/repos/vizorvr/vizor/issues/comments{/number}","contents_url":"https://api.github.com/repos/vizorvr/vizor/contents/{+path}","compare_url":"https://api.github.com/repos/vizorvr/vizor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vizorvr/vizor/merges","archive_url":"https://api.github.com/repos/vizorvr/vizor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vizorvr/vizor/downloads","issues_url":"https://api.github.com/repos/vizorvr/vizor/issues{/number}","pulls_url":"https://api.github.com/repos/vizorvr/vizor/pulls{/number}","milestones_url":"https://api.github.com/repos/vizorvr/vizor/milestones{/number}","notifications_url":"https://api.github.com/repos/vizorvr/vizor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vizorvr/vizor/labels{/name}","releases_url":"https://api.github.com/repos/vizorvr/vizor/releases{/id}","created_at":"2015-01-11T15:54:34Z","updated_at":"2015-09-23T11:36:40Z","pushed_at":"2015-09-23T21:20:51Z","git_url":"git://github.com/vizorvr/vizor.git","ssh_url":"git@github.com:vizorvr/vizor.git","clone_url":"https://github.com/vizorvr/vizor.git","svn_url":"https://github.com/vizorvr/vizor","homepage":"http://vizor.io","size":37987,"stargazers_count":51,"watchers_count":51,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":96,"forks":4,"open_issues":96,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/506"},"html":{"href":"https://github.com/vizorvr/vizor/pull/506"},"issue":{"href":"https://api.github.com/repos/vizorvr/vizor/issues/506"},"comments":{"href":"https://api.github.com/repos/vizorvr/vizor/issues/506/comments"},"review_comments":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/506/comments"},"review_comment":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/506/commits"},"statuses":{"href":"https://api.github.com/repos/vizorvr/vizor/statuses/ca7b654a157f914209fb2af5df860cbe9622c132"}}}}