{"action":"created","comment":{"url":"https://api.github.com/repos/jasonwang67/timeline/pulls/comments/75547110","id":75547110,"diff_hunk":"@@ -38,6 +38,34 @@ angular.module('main').service('AuthService', function($q, Session, $rootScope,\n     return !!Session.profile;\n   };\n \n+  this.changeEmail = function(newEmail){\n+    var result = $q.defer();\n+\n+    firebase.auth().currentUser.updateEmail(newEmail)\n+    .then(function(){\n+      result.resolve('Success!');\n+    })\n+    .catch(function(err){\n+      result.reject(err);\n+    });\n+\n+    return result.promise;\n+  };\n+\n+  this.changePassword = function(newPassword){\n+    var result = $q.defer();\n+\n+    firebase.auth().currentUser.updatePassword(newPassword)\n+    .then(function(){\n+      result.resolve('Success!');\n+    })\n+    .catch(function(err){\n+      result.reject(err);\n+    });\n+\n+    return result.promise;\n+  };\n+","path":"www/js/common/services/auth.service.js","position":17,"original_position":31,"commit_id":"dceb3419ffbe58c2308dca82e830042f786a054b","original_commit_id":"dceb3419ffbe58c2308dca82e830042f786a054b","user":{"login":"bgergen","id":17029672,"avatar_url":"https://avatars.githubusercontent.com/u/17029672?v=3","gravatar_id":"","url":"https://api.github.com/users/bgergen","html_url":"https://github.com/bgergen","followers_url":"https://api.github.com/users/bgergen/followers","following_url":"https://api.github.com/users/bgergen/following{/other_user}","gists_url":"https://api.github.com/users/bgergen/gists{/gist_id}","starred_url":"https://api.github.com/users/bgergen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgergen/subscriptions","organizations_url":"https://api.github.com/users/bgergen/orgs","repos_url":"https://api.github.com/users/bgergen/repos","events_url":"https://api.github.com/users/bgergen/events{/privacy}","received_events_url":"https://api.github.com/users/bgergen/received_events","type":"User","site_admin":false},"body":"Why `$q` as opposed to native ES6 `Promise`s?","created_at":"2016-08-19T20:32:12Z","updated_at":"2016-08-19T20:32:12Z","html_url":"https://github.com/jasonwang67/timeline/pull/37#discussion_r75547110","pull_request_url":"https://api.github.com/repos/jasonwang67/timeline/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/jasonwang67/timeline/pulls/comments/75547110"},"html":{"href":"https://github.com/jasonwang67/timeline/pull/37#discussion_r75547110"},"pull_request":{"href":"https://api.github.com/repos/jasonwang67/timeline/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/jasonwang67/timeline/pulls/37","id":82039491,"html_url":"https://github.com/jasonwang67/timeline/pull/37","diff_url":"https://github.com/jasonwang67/timeline/pull/37.diff","patch_url":"https://github.com/jasonwang67/timeline/pull/37.patch","issue_url":"https://api.github.com/repos/jasonwang67/timeline/issues/37","number":37,"state":"open","locked":false,"title":"new profile fixes","user":{"login":"jasonwang67","id":7934854,"avatar_url":"https://avatars.githubusercontent.com/u/7934854?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonwang67","html_url":"https://github.com/jasonwang67","followers_url":"https://api.github.com/users/jasonwang67/followers","following_url":"https://api.github.com/users/jasonwang67/following{/other_user}","gists_url":"https://api.github.com/users/jasonwang67/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonwang67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonwang67/subscriptions","organizations_url":"https://api.github.com/users/jasonwang67/orgs","repos_url":"https://api.github.com/users/jasonwang67/repos","events_url":"https://api.github.com/users/jasonwang67/events{/privacy}","received_events_url":"https://api.github.com/users/jasonwang67/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-19T20:16:38Z","updated_at":"2016-08-19T20:32:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a80799c2cc9ede4ddd012fa1a6e1fe2e6dda0fcd","assignee":{"login":"samuelklam","id":6326515,"avatar_url":"https://avatars.githubusercontent.com/u/6326515?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelklam","html_url":"https://github.com/samuelklam","followers_url":"https://api.github.com/users/samuelklam/followers","following_url":"https://api.github.com/users/samuelklam/following{/other_user}","gists_url":"https://api.github.com/users/samuelklam/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelklam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelklam/subscriptions","organizations_url":"https://api.github.com/users/samuelklam/orgs","repos_url":"https://api.github.com/users/samuelklam/repos","events_url":"https://api.github.com/users/samuelklam/events{/privacy}","received_events_url":"https://api.github.com/users/samuelklam/received_events","type":"User","site_admin":false},"assignees":[{"login":"samuelklam","id":6326515,"avatar_url":"https://avatars.githubusercontent.com/u/6326515?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelklam","html_url":"https://github.com/samuelklam","followers_url":"https://api.github.com/users/samuelklam/followers","following_url":"https://api.github.com/users/samuelklam/following{/other_user}","gists_url":"https://api.github.com/users/samuelklam/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelklam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelklam/subscriptions","organizations_url":"https://api.github.com/users/samuelklam/orgs","repos_url":"https://api.github.com/users/samuelklam/repos","events_url":"https://api.github.com/users/samuelklam/events{/privacy}","received_events_url":"https://api.github.com/users/samuelklam/received_events","type":"User","site_admin":false},{"login":"sjkim1995","id":17131358,"avatar_url":"https://avatars.githubusercontent.com/u/17131358?v=3","gravatar_id":"","url":"https://api.github.com/users/sjkim1995","html_url":"https://github.com/sjkim1995","followers_url":"https://api.github.com/users/sjkim1995/followers","following_url":"https://api.github.com/users/sjkim1995/following{/other_user}","gists_url":"https://api.github.com/users/sjkim1995/gists{/gist_id}","starred_url":"https://api.github.com/users/sjkim1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjkim1995/subscriptions","organizations_url":"https://api.github.com/users/sjkim1995/orgs","repos_url":"https://api.github.com/users/sjkim1995/repos","events_url":"https://api.github.com/users/sjkim1995/events{/privacy}","received_events_url":"https://api.github.com/users/sjkim1995/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/jasonwang67/timeline/pulls/37/commits","review_comments_url":"https://api.github.com/repos/jasonwang67/timeline/pulls/37/comments","review_comment_url":"https://api.github.com/repos/jasonwang67/timeline/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jasonwang67/timeline/issues/37/comments","statuses_url":"https://api.github.com/repos/jasonwang67/timeline/statuses/dceb3419ffbe58c2308dca82e830042f786a054b","head":{"label":"jasonwang67:profile-fix","ref":"profile-fix","sha":"dceb3419ffbe58c2308dca82e830042f786a054b","user":{"login":"jasonwang67","id":7934854,"avatar_url":"https://avatars.githubusercontent.com/u/7934854?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonwang67","html_url":"https://github.com/jasonwang67","followers_url":"https://api.github.com/users/jasonwang67/followers","following_url":"https://api.github.com/users/jasonwang67/following{/other_user}","gists_url":"https://api.github.com/users/jasonwang67/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonwang67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonwang67/subscriptions","organizations_url":"https://api.github.com/users/jasonwang67/orgs","repos_url":"https://api.github.com/users/jasonwang67/repos","events_url":"https://api.github.com/users/jasonwang67/events{/privacy}","received_events_url":"https://api.github.com/users/jasonwang67/received_events","type":"User","site_admin":false},"repo":{"id":65574795,"name":"timeline","full_name":"jasonwang67/timeline","owner":{"login":"jasonwang67","id":7934854,"avatar_url":"https://avatars.githubusercontent.com/u/7934854?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonwang67","html_url":"https://github.com/jasonwang67","followers_url":"https://api.github.com/users/jasonwang67/followers","following_url":"https://api.github.com/users/jasonwang67/following{/other_user}","gists_url":"https://api.github.com/users/jasonwang67/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonwang67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonwang67/subscriptions","organizations_url":"https://api.github.com/users/jasonwang67/orgs","repos_url":"https://api.github.com/users/jasonwang67/repos","events_url":"https://api.github.com/users/jasonwang67/events{/privacy}","received_events_url":"https://api.github.com/users/jasonwang67/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jasonwang67/timeline","description":null,"fork":false,"url":"https://api.github.com/repos/jasonwang67/timeline","forks_url":"https://api.github.com/repos/jasonwang67/timeline/forks","keys_url":"https://api.github.com/repos/jasonwang67/timeline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jasonwang67/timeline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jasonwang67/timeline/teams","hooks_url":"https://api.github.com/repos/jasonwang67/timeline/hooks","issue_events_url":"https://api.github.com/repos/jasonwang67/timeline/issues/events{/number}","events_url":"https://api.github.com/repos/jasonwang67/timeline/events","assignees_url":"https://api.github.com/repos/jasonwang67/timeline/assignees{/user}","branches_url":"https://api.github.com/repos/jasonwang67/timeline/branches{/branch}","tags_url":"https://api.github.com/repos/jasonwang67/timeline/tags","blobs_url":"https://api.github.com/repos/jasonwang67/timeline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jasonwang67/timeline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jasonwang67/timeline/git/refs{/sha}","trees_url":"https://api.github.com/repos/jasonwang67/timeline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jasonwang67/timeline/statuses/{sha}","languages_url":"https://api.github.com/repos/jasonwang67/timeline/languages","stargazers_url":"https://api.github.com/repos/jasonwang67/timeline/stargazers","contributors_url":"https://api.github.com/repos/jasonwang67/timeline/contributors","subscribers_url":"https://api.github.com/repos/jasonwang67/timeline/subscribers","subscription_url":"https://api.github.com/repos/jasonwang67/timeline/subscription","commits_url":"https://api.github.com/repos/jasonwang67/timeline/commits{/sha}","git_commits_url":"https://api.github.com/repos/jasonwang67/timeline/git/commits{/sha}","comments_url":"https://api.github.com/repos/jasonwang67/timeline/comments{/number}","issue_comment_url":"https://api.github.com/repos/jasonwang67/timeline/issues/comments{/number}","contents_url":"https://api.github.com/repos/jasonwang67/timeline/contents/{+path}","compare_url":"https://api.github.com/repos/jasonwang67/timeline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jasonwang67/timeline/merges","archive_url":"https://api.github.com/repos/jasonwang67/timeline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jasonwang67/timeline/downloads","issues_url":"https://api.github.com/repos/jasonwang67/timeline/issues{/number}","pulls_url":"https://api.github.com/repos/jasonwang67/timeline/pulls{/number}","milestones_url":"https://api.github.com/repos/jasonwang67/timeline/milestones{/number}","notifications_url":"https://api.github.com/repos/jasonwang67/timeline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jasonwang67/timeline/labels{/name}","releases_url":"https://api.github.com/repos/jasonwang67/timeline/releases{/id}","deployments_url":"https://api.github.com/repos/jasonwang67/timeline/deployments","created_at":"2016-08-12T18:21:39Z","updated_at":"2016-08-15T02:05:43Z","pushed_at":"2016-08-19T20:31:32Z","git_url":"git://github.com/jasonwang67/timeline.git","ssh_url":"git@github.com:jasonwang67/timeline.git","clone_url":"https://github.com/jasonwang67/timeline.git","svn_url":"https://github.com/jasonwang67/timeline","homepage":null,"size":5279,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":2,"default_branch":"master"}},"base":{"label":"jasonwang67:master","ref":"master","sha":"2fe0709bad8e5363a835a8e570f383e116516dd2","user":{"login":"jasonwang67","id":7934854,"avatar_url":"https://avatars.githubusercontent.com/u/7934854?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonwang67","html_url":"https://github.com/jasonwang67","followers_url":"https://api.github.com/users/jasonwang67/followers","following_url":"https://api.github.com/users/jasonwang67/following{/other_user}","gists_url":"https://api.github.com/users/jasonwang67/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonwang67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonwang67/subscriptions","organizations_url":"https://api.github.com/users/jasonwang67/orgs","repos_url":"https://api.github.com/users/jasonwang67/repos","events_url":"https://api.github.com/users/jasonwang67/events{/privacy}","received_events_url":"https://api.github.com/users/jasonwang67/received_events","type":"User","site_admin":false},"repo":{"id":65574795,"name":"timeline","full_name":"jasonwang67/timeline","owner":{"login":"jasonwang67","id":7934854,"avatar_url":"https://avatars.githubusercontent.com/u/7934854?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonwang67","html_url":"https://github.com/jasonwang67","followers_url":"https://api.github.com/users/jasonwang67/followers","following_url":"https://api.github.com/users/jasonwang67/following{/other_user}","gists_url":"https://api.github.com/users/jasonwang67/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonwang67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonwang67/subscriptions","organizations_url":"https://api.github.com/users/jasonwang67/orgs","repos_url":"https://api.github.com/users/jasonwang67/repos","events_url":"https://api.github.com/users/jasonwang67/events{/privacy}","received_events_url":"https://api.github.com/users/jasonwang67/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jasonwang67/timeline","description":null,"fork":false,"url":"https://api.github.com/repos/jasonwang67/timeline","forks_url":"https://api.github.com/repos/jasonwang67/timeline/forks","keys_url":"https://api.github.com/repos/jasonwang67/timeline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jasonwang67/timeline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jasonwang67/timeline/teams","hooks_url":"https://api.github.com/repos/jasonwang67/timeline/hooks","issue_events_url":"https://api.github.com/repos/jasonwang67/timeline/issues/events{/number}","events_url":"https://api.github.com/repos/jasonwang67/timeline/events","assignees_url":"https://api.github.com/repos/jasonwang67/timeline/assignees{/user}","branches_url":"https://api.github.com/repos/jasonwang67/timeline/branches{/branch}","tags_url":"https://api.github.com/repos/jasonwang67/timeline/tags","blobs_url":"https://api.github.com/repos/jasonwang67/timeline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jasonwang67/timeline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jasonwang67/timeline/git/refs{/sha}","trees_url":"https://api.github.com/repos/jasonwang67/timeline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jasonwang67/timeline/statuses/{sha}","languages_url":"https://api.github.com/repos/jasonwang67/timeline/languages","stargazers_url":"https://api.github.com/repos/jasonwang67/timeline/stargazers","contributors_url":"https://api.github.com/repos/jasonwang67/timeline/contributors","subscribers_url":"https://api.github.com/repos/jasonwang67/timeline/subscribers","subscription_url":"https://api.github.com/repos/jasonwang67/timeline/subscription","commits_url":"https://api.github.com/repos/jasonwang67/timeline/commits{/sha}","git_commits_url":"https://api.github.com/repos/jasonwang67/timeline/git/commits{/sha}","comments_url":"https://api.github.com/repos/jasonwang67/timeline/comments{/number}","issue_comment_url":"https://api.github.com/repos/jasonwang67/timeline/issues/comments{/number}","contents_url":"https://api.github.com/repos/jasonwang67/timeline/contents/{+path}","compare_url":"https://api.github.com/repos/jasonwang67/timeline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jasonwang67/timeline/merges","archive_url":"https://api.github.com/repos/jasonwang67/timeline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jasonwang67/timeline/downloads","issues_url":"https://api.github.com/repos/jasonwang67/timeline/issues{/number}","pulls_url":"https://api.github.com/repos/jasonwang67/timeline/pulls{/number}","milestones_url":"https://api.github.com/repos/jasonwang67/timeline/milestones{/number}","notifications_url":"https://api.github.com/repos/jasonwang67/timeline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jasonwang67/timeline/labels{/name}","releases_url":"https://api.github.com/repos/jasonwang67/timeline/releases{/id}","deployments_url":"https://api.github.com/repos/jasonwang67/timeline/deployments","created_at":"2016-08-12T18:21:39Z","updated_at":"2016-08-15T02:05:43Z","pushed_at":"2016-08-19T20:31:32Z","git_url":"git://github.com/jasonwang67/timeline.git","ssh_url":"git@github.com:jasonwang67/timeline.git","clone_url":"https://github.com/jasonwang67/timeline.git","svn_url":"https://github.com/jasonwang67/timeline","homepage":null,"size":5279,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jasonwang67/timeline/pulls/37"},"html":{"href":"https://github.com/jasonwang67/timeline/pull/37"},"issue":{"href":"https://api.github.com/repos/jasonwang67/timeline/issues/37"},"comments":{"href":"https://api.github.com/repos/jasonwang67/timeline/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/jasonwang67/timeline/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/jasonwang67/timeline/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jasonwang67/timeline/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/jasonwang67/timeline/statuses/dceb3419ffbe58c2308dca82e830042f786a054b"}}}}
{"actor":{"display_login":"bgergen"}}