{"action":"created","comment":{"url":"https://api.github.com/repos/paperhive/paperhive-frontend/pulls/comments/52530796","id":52530796,"diff_hunk":"@@ -0,0 +1,54 @@\n+'use strict';\n+export default function(app) {\n+  app.controller('LoginCtrl', ['$scope', '$location', 'authService', '$http', 'config',\n+    function($scope, $location, authService, $http, config) {\n+\n+      $scope.auth = authService;\n+\n+      $scope.login = {\n+        emailOrUsername: '',\n+        password: ''\n+      };\n+\n+      $scope.hasError = function(field) {\n+        const form = $scope.loginForm;\n+        return (form.$submitted || form[field].$touched) &&\n+          form[field].$invalid;\n+      };\n+\n+      $scope.$watch('emailOrUsername', function() {\n+        $scope.emailError = undefined;\n+        $scope.responseError = undefined;\n+      });","path":"app/controllers/login.ts","position":22,"original_position":22,"commit_id":"3c452f1a36d8f93078b8dfeabba9e333e879e853","original_commit_id":"3c452f1a36d8f93078b8dfeabba9e333e879e853","user":{"login":"jengeb","id":3831683,"avatar_url":"https://avatars.githubusercontent.com/u/3831683?v=3","gravatar_id":"","url":"https://api.github.com/users/jengeb","html_url":"https://github.com/jengeb","followers_url":"https://api.github.com/users/jengeb/followers","following_url":"https://api.github.com/users/jengeb/following{/other_user}","gists_url":"https://api.github.com/users/jengeb/gists{/gist_id}","starred_url":"https://api.github.com/users/jengeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jengeb/subscriptions","organizations_url":"https://api.github.com/users/jengeb/orgs","repos_url":"https://api.github.com/users/jengeb/repos","events_url":"https://api.github.com/users/jengeb/events{/privacy}","received_events_url":"https://api.github.com/users/jengeb/received_events","type":"User","site_admin":false},"body":"Alright, @andrenarchy do you remove it?","created_at":"2016-02-10T21:46:15Z","updated_at":"2016-02-10T21:46:15Z","html_url":"https://github.com/paperhive/paperhive-frontend/pull/282#discussion_r52530796","pull_request_url":"https://api.github.com/repos/paperhive/paperhive-frontend/pulls/282","_links":{"self":{"href":"https://api.github.com/repos/paperhive/paperhive-frontend/pulls/comments/52530796"},"html":{"href":"https://github.com/paperhive/paperhive-frontend/pull/282#discussion_r52530796"},"pull_request":{"href":"https://api.github.com/repos/paperhive/paperhive-frontend/pulls/282"}}},"pull_request":{"url":"https://api.github.com/repos/paperhive/paperhive-frontend/pulls/282","id":58804267,"html_url":"https://github.com/paperhive/paperhive-frontend/pull/282","diff_url":"https://github.com/paperhive/paperhive-frontend/pull/282.diff","patch_url":"https://github.com/paperhive/paperhive-frontend/pull/282.patch","issue_url":"https://api.github.com/repos/paperhive/paperhive-frontend/issues/282","number":282,"state":"open","locked":false,"title":"Log in","user":{"login":"jengeb","id":3831683,"avatar_url":"https://avatars.githubusercontent.com/u/3831683?v=3","gravatar_id":"","url":"https://api.github.com/users/jengeb","html_url":"https://github.com/jengeb","followers_url":"https://api.github.com/users/jengeb/followers","following_url":"https://api.github.com/users/jengeb/following{/other_user}","gists_url":"https://api.github.com/users/jengeb/gists{/gist_id}","starred_url":"https://api.github.com/users/jengeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jengeb/subscriptions","organizations_url":"https://api.github.com/users/jengeb/orgs","repos_url":"https://api.github.com/users/jengeb/repos","events_url":"https://api.github.com/users/jengeb/events{/privacy}","received_events_url":"https://api.github.com/users/jengeb/received_events","type":"User","site_admin":false},"body":"* log in and sign up page with flexboxes \r\n* mobile CSS\r\n* form validation\r\n* http posts to backend","created_at":"2016-02-09T20:30:18Z","updated_at":"2016-02-10T21:46:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ad658eb420f8fbe811b7358198316ee11c319d5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/paperhive/paperhive-frontend/pulls/282/commits","review_comments_url":"https://api.github.com/repos/paperhive/paperhive-frontend/pulls/282/comments","review_comment_url":"https://api.github.com/repos/paperhive/paperhive-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paperhive/paperhive-frontend/issues/282/comments","statuses_url":"https://api.github.com/repos/paperhive/paperhive-frontend/statuses/3c452f1a36d8f93078b8dfeabba9e333e879e853","head":{"label":"paperhive:log-in","ref":"log-in","sha":"3c452f1a36d8f93078b8dfeabba9e333e879e853","user":{"login":"paperhive","id":8027504,"avatar_url":"https://avatars.githubusercontent.com/u/8027504?v=3","gravatar_id":"","url":"https://api.github.com/users/paperhive","html_url":"https://github.com/paperhive","followers_url":"https://api.github.com/users/paperhive/followers","following_url":"https://api.github.com/users/paperhive/following{/other_user}","gists_url":"https://api.github.com/users/paperhive/gists{/gist_id}","starred_url":"https://api.github.com/users/paperhive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paperhive/subscriptions","organizations_url":"https://api.github.com/users/paperhive/orgs","repos_url":"https://api.github.com/users/paperhive/repos","events_url":"https://api.github.com/users/paperhive/events{/privacy}","received_events_url":"https://api.github.com/users/paperhive/received_events","type":"Organization","site_admin":false},"repo":{"id":25691817,"name":"paperhive-frontend","full_name":"paperhive/paperhive-frontend","owner":{"login":"paperhive","id":8027504,"avatar_url":"https://avatars.githubusercontent.com/u/8027504?v=3","gravatar_id":"","url":"https://api.github.com/users/paperhive","html_url":"https://github.com/paperhive","followers_url":"https://api.github.com/users/paperhive/followers","following_url":"https://api.github.com/users/paperhive/following{/other_user}","gists_url":"https://api.github.com/users/paperhive/gists{/gist_id}","starred_url":"https://api.github.com/users/paperhive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paperhive/subscriptions","organizations_url":"https://api.github.com/users/paperhive/orgs","repos_url":"https://api.github.com/users/paperhive/repos","events_url":"https://api.github.com/users/paperhive/events{/privacy}","received_events_url":"https://api.github.com/users/paperhive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/paperhive/paperhive-frontend","description":"Front end for PaperHive","fork":false,"url":"https://api.github.com/repos/paperhive/paperhive-frontend","forks_url":"https://api.github.com/repos/paperhive/paperhive-frontend/forks","keys_url":"https://api.github.com/repos/paperhive/paperhive-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paperhive/paperhive-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paperhive/paperhive-frontend/teams","hooks_url":"https://api.github.com/repos/paperhive/paperhive-frontend/hooks","issue_events_url":"https://api.github.com/repos/paperhive/paperhive-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/paperhive/paperhive-frontend/events","assignees_url":"https://api.github.com/repos/paperhive/paperhive-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/paperhive/paperhive-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/paperhive/paperhive-frontend/tags","blobs_url":"https://api.github.com/repos/paperhive/paperhive-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paperhive/paperhive-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paperhive/paperhive-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/paperhive/paperhive-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paperhive/paperhive-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/paperhive/paperhive-frontend/languages","stargazers_url":"https://api.github.com/repos/paperhive/paperhive-frontend/stargazers","contributors_url":"https://api.github.com/repos/paperhive/paperhive-frontend/contributors","subscribers_url":"https://api.github.com/repos/paperhive/paperhive-frontend/subscribers","subscription_url":"https://api.github.com/repos/paperhive/paperhive-frontend/subscription","commits_url":"https://api.github.com/repos/paperhive/paperhive-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/paperhive/paperhive-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/paperhive/paperhive-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/paperhive/paperhive-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/paperhive/paperhive-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/paperhive/paperhive-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paperhive/paperhive-frontend/merges","archive_url":"https://api.github.com/repos/paperhive/paperhive-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paperhive/paperhive-frontend/downloads","issues_url":"https://api.github.com/repos/paperhive/paperhive-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/paperhive/paperhive-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/paperhive/paperhive-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/paperhive/paperhive-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paperhive/paperhive-frontend/labels{/name}","releases_url":"https://api.github.com/repos/paperhive/paperhive-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/paperhive/paperhive-frontend/deployments","created_at":"2014-10-24T14:16:38Z","updated_at":"2016-02-06T22:28:05Z","pushed_at":"2016-02-10T21:06:42Z","git_url":"git://github.com/paperhive/paperhive-frontend.git","ssh_url":"git@github.com:paperhive/paperhive-frontend.git","clone_url":"https://github.com/paperhive/paperhive-frontend.git","svn_url":"https://github.com/paperhive/paperhive-frontend","homepage":"https://paperhive.org","size":1488,"stargazers_count":8,"watchers_count":8,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":70,"forks":4,"open_issues":70,"watchers":8,"default_branch":"master"}},"base":{"label":"paperhive:master","ref":"master","sha":"f79827355bb6e080801f844d163304b8ef14734e","user":{"login":"paperhive","id":8027504,"avatar_url":"https://avatars.githubusercontent.com/u/8027504?v=3","gravatar_id":"","url":"https://api.github.com/users/paperhive","html_url":"https://github.com/paperhive","followers_url":"https://api.github.com/users/paperhive/followers","following_url":"https://api.github.com/users/paperhive/following{/other_user}","gists_url":"https://api.github.com/users/paperhive/gists{/gist_id}","starred_url":"https://api.github.com/users/paperhive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paperhive/subscriptions","organizations_url":"https://api.github.com/users/paperhive/orgs","repos_url":"https://api.github.com/users/paperhive/repos","events_url":"https://api.github.com/users/paperhive/events{/privacy}","received_events_url":"https://api.github.com/users/paperhive/received_events","type":"Organization","site_admin":false},"repo":{"id":25691817,"name":"paperhive-frontend","full_name":"paperhive/paperhive-frontend","owner":{"login":"paperhive","id":8027504,"avatar_url":"https://avatars.githubusercontent.com/u/8027504?v=3","gravatar_id":"","url":"https://api.github.com/users/paperhive","html_url":"https://github.com/paperhive","followers_url":"https://api.github.com/users/paperhive/followers","following_url":"https://api.github.com/users/paperhive/following{/other_user}","gists_url":"https://api.github.com/users/paperhive/gists{/gist_id}","starred_url":"https://api.github.com/users/paperhive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paperhive/subscriptions","organizations_url":"https://api.github.com/users/paperhive/orgs","repos_url":"https://api.github.com/users/paperhive/repos","events_url":"https://api.github.com/users/paperhive/events{/privacy}","received_events_url":"https://api.github.com/users/paperhive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/paperhive/paperhive-frontend","description":"Front end for PaperHive","fork":false,"url":"https://api.github.com/repos/paperhive/paperhive-frontend","forks_url":"https://api.github.com/repos/paperhive/paperhive-frontend/forks","keys_url":"https://api.github.com/repos/paperhive/paperhive-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paperhive/paperhive-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paperhive/paperhive-frontend/teams","hooks_url":"https://api.github.com/repos/paperhive/paperhive-frontend/hooks","issue_events_url":"https://api.github.com/repos/paperhive/paperhive-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/paperhive/paperhive-frontend/events","assignees_url":"https://api.github.com/repos/paperhive/paperhive-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/paperhive/paperhive-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/paperhive/paperhive-frontend/tags","blobs_url":"https://api.github.com/repos/paperhive/paperhive-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paperhive/paperhive-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paperhive/paperhive-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/paperhive/paperhive-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paperhive/paperhive-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/paperhive/paperhive-frontend/languages","stargazers_url":"https://api.github.com/repos/paperhive/paperhive-frontend/stargazers","contributors_url":"https://api.github.com/repos/paperhive/paperhive-frontend/contributors","subscribers_url":"https://api.github.com/repos/paperhive/paperhive-frontend/subscribers","subscription_url":"https://api.github.com/repos/paperhive/paperhive-frontend/subscription","commits_url":"https://api.github.com/repos/paperhive/paperhive-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/paperhive/paperhive-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/paperhive/paperhive-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/paperhive/paperhive-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/paperhive/paperhive-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/paperhive/paperhive-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paperhive/paperhive-frontend/merges","archive_url":"https://api.github.com/repos/paperhive/paperhive-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paperhive/paperhive-frontend/downloads","issues_url":"https://api.github.com/repos/paperhive/paperhive-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/paperhive/paperhive-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/paperhive/paperhive-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/paperhive/paperhive-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paperhive/paperhive-frontend/labels{/name}","releases_url":"https://api.github.com/repos/paperhive/paperhive-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/paperhive/paperhive-frontend/deployments","created_at":"2014-10-24T14:16:38Z","updated_at":"2016-02-06T22:28:05Z","pushed_at":"2016-02-10T21:06:42Z","git_url":"git://github.com/paperhive/paperhive-frontend.git","ssh_url":"git@github.com:paperhive/paperhive-frontend.git","clone_url":"https://github.com/paperhive/paperhive-frontend.git","svn_url":"https://github.com/paperhive/paperhive-frontend","homepage":"https://paperhive.org","size":1488,"stargazers_count":8,"watchers_count":8,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":70,"forks":4,"open_issues":70,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paperhive/paperhive-frontend/pulls/282"},"html":{"href":"https://github.com/paperhive/paperhive-frontend/pull/282"},"issue":{"href":"https://api.github.com/repos/paperhive/paperhive-frontend/issues/282"},"comments":{"href":"https://api.github.com/repos/paperhive/paperhive-frontend/issues/282/comments"},"review_comments":{"href":"https://api.github.com/repos/paperhive/paperhive-frontend/pulls/282/comments"},"review_comment":{"href":"https://api.github.com/repos/paperhive/paperhive-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paperhive/paperhive-frontend/pulls/282/commits"},"statuses":{"href":"https://api.github.com/repos/paperhive/paperhive-frontend/statuses/3c452f1a36d8f93078b8dfeabba9e333e879e853"}}}}