{"action":"created","comment":{"url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/pulls/comments/240222151","pull_request_review_id":183199926,"id":240222151,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDIyMjE1MQ==","diff_hunk":"@@ -0,0 +1,83 @@\n+import React, { Component } from 'react';\n+import { Redirect } from 'react-router-dom';\n+import { Input, Button, Checkbox, } from 'antd';\n+import './LoginForm.scss';\n+\n+import LoginService from '../../services/LoginService';\n+\n+export default class LoginForm extends Component {\n+    constructor() {\n+        super();\n+\n+        this.state = {\n+            email: \"\",\n+            pass: \"\",\n+            loggedIn: false\n+        }\n+    }\n+\n+    onEmailChange = e => {\n+        this.setState({\n+            email: e.target.value,\n+        });\n+    }\n+\n+    onPassChange = e => {\n+        this.setState({\n+            pass: e.target.value,\n+        });\n+    }\n+\n+    handleRemembmerMe = e => {\n+        console.log('Clicked');\n+    }\n+\n+    handleSubmit = e => {\n+        console.log('Clicked');\n+        const credentials = {\n+            email: this.state.email,\n+            password: this.state.pass\n+        }\n+\n+        LoginService.logIn(credentials)\n+            .then(res => {\n+                console.log(res);\n+                // Redirect\n+                this.props.history.push('/');\n+            }).catch(err => {\n+                console.log(err);","path":"src/components/login/LoginForm.js","position":48,"original_position":48,"commit_id":"0eec06818fb7384f46a1610f4e1dd45c7f32fe2e","original_commit_id":"0eec06818fb7384f46a1610f4e1dd45c7f32fe2e","user":{"login":"AlexSensei","id":20355336,"node_id":"MDQ6VXNlcjIwMzU1MzM2","avatar_url":"https://avatars0.githubusercontent.com/u/20355336?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexSensei","html_url":"https://github.com/AlexSensei","followers_url":"https://api.github.com/users/AlexSensei/followers","following_url":"https://api.github.com/users/AlexSensei/following{/other_user}","gists_url":"https://api.github.com/users/AlexSensei/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexSensei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexSensei/subscriptions","organizations_url":"https://api.github.com/users/AlexSensei/orgs","repos_url":"https://api.github.com/users/AlexSensei/repos","events_url":"https://api.github.com/users/AlexSensei/events{/privacy}","received_events_url":"https://api.github.com/users/AlexSensei/received_events","type":"User","site_admin":false},"body":"Ovde mislim da bi bilo bolje da ispise neki error message tipa invalid credentials","created_at":"2018-12-10T14:08:31Z","updated_at":"2018-12-10T14:11:36Z","html_url":"https://github.com/tomislavperich/vivify-todoapp-frontend/pull/1#discussion_r240222151","pull_request_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/pulls/comments/240222151"},"html":{"href":"https://github.com/tomislavperich/vivify-todoapp-frontend/pull/1#discussion_r240222151"},"pull_request":{"href":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/pulls/1","id":236916682,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2OTE2Njgy","html_url":"https://github.com/tomislavperich/vivify-todoapp-frontend/pull/1","diff_url":"https://github.com/tomislavperich/vivify-todoapp-frontend/pull/1.diff","patch_url":"https://github.com/tomislavperich/vivify-todoapp-frontend/pull/1.patch","issue_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/issues/1","number":1,"state":"open","locked":false,"title":"#LACV-22 Login","user":{"login":"tomislavperich","id":5732832,"node_id":"MDQ6VXNlcjU3MzI4MzI=","avatar_url":"https://avatars1.githubusercontent.com/u/5732832?v=4","gravatar_id":"","url":"https://api.github.com/users/tomislavperich","html_url":"https://github.com/tomislavperich","followers_url":"https://api.github.com/users/tomislavperich/followers","following_url":"https://api.github.com/users/tomislavperich/following{/other_user}","gists_url":"https://api.github.com/users/tomislavperich/gists{/gist_id}","starred_url":"https://api.github.com/users/tomislavperich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomislavperich/subscriptions","organizations_url":"https://api.github.com/users/tomislavperich/orgs","repos_url":"https://api.github.com/users/tomislavperich/repos","events_url":"https://api.github.com/users/tomislavperich/events{/privacy}","received_events_url":"https://api.github.com/users/tomislavperich/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-07T16:07:50Z","updated_at":"2018-12-10T14:11:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6123d0554091dba8c138ce05307a0d1e3c6a9fb3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/pulls/1/commits","review_comments_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/pulls/1/comments","review_comment_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/issues/1/comments","statuses_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/statuses/0eec06818fb7384f46a1610f4e1dd45c7f32fe2e","head":{"label":"tomislavperich:feature/login","ref":"feature/login","sha":"0eec06818fb7384f46a1610f4e1dd45c7f32fe2e","user":{"login":"tomislavperich","id":5732832,"node_id":"MDQ6VXNlcjU3MzI4MzI=","avatar_url":"https://avatars1.githubusercontent.com/u/5732832?v=4","gravatar_id":"","url":"https://api.github.com/users/tomislavperich","html_url":"https://github.com/tomislavperich","followers_url":"https://api.github.com/users/tomislavperich/followers","following_url":"https://api.github.com/users/tomislavperich/following{/other_user}","gists_url":"https://api.github.com/users/tomislavperich/gists{/gist_id}","starred_url":"https://api.github.com/users/tomislavperich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomislavperich/subscriptions","organizations_url":"https://api.github.com/users/tomislavperich/orgs","repos_url":"https://api.github.com/users/tomislavperich/repos","events_url":"https://api.github.com/users/tomislavperich/events{/privacy}","received_events_url":"https://api.github.com/users/tomislavperich/received_events","type":"User","site_admin":false},"repo":{"id":160832952,"node_id":"MDEwOlJlcG9zaXRvcnkxNjA4MzI5NTI=","name":"vivify-todoapp-frontend","full_name":"tomislavperich/vivify-todoapp-frontend","private":false,"owner":{"login":"tomislavperich","id":5732832,"node_id":"MDQ6VXNlcjU3MzI4MzI=","avatar_url":"https://avatars1.githubusercontent.com/u/5732832?v=4","gravatar_id":"","url":"https://api.github.com/users/tomislavperich","html_url":"https://github.com/tomislavperich","followers_url":"https://api.github.com/users/tomislavperich/followers","following_url":"https://api.github.com/users/tomislavperich/following{/other_user}","gists_url":"https://api.github.com/users/tomislavperich/gists{/gist_id}","starred_url":"https://api.github.com/users/tomislavperich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomislavperich/subscriptions","organizations_url":"https://api.github.com/users/tomislavperich/orgs","repos_url":"https://api.github.com/users/tomislavperich/repos","events_url":"https://api.github.com/users/tomislavperich/events{/privacy}","received_events_url":"https://api.github.com/users/tomislavperich/received_events","type":"User","site_admin":false},"html_url":"https://github.com/tomislavperich/vivify-todoapp-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend","forks_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/forks","keys_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/teams","hooks_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/hooks","issue_events_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/events","assignees_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/tags","blobs_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/languages","stargazers_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/stargazers","contributors_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/contributors","subscribers_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/subscribers","subscription_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/subscription","commits_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/merges","archive_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/downloads","issues_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/labels{/name}","releases_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/deployments","created_at":"2018-12-07T14:19:25Z","updated_at":"2018-12-07T14:20:13Z","pushed_at":"2018-12-10T13:18:29Z","git_url":"git://github.com/tomislavperich/vivify-todoapp-frontend.git","ssh_url":"git@github.com:tomislavperich/vivify-todoapp-frontend.git","clone_url":"https://github.com/tomislavperich/vivify-todoapp-frontend.git","svn_url":"https://github.com/tomislavperich/vivify-todoapp-frontend","homepage":null,"size":180,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"tomislavperich:master","ref":"master","sha":"ce1a1b6499bdeddcfb12cec5eb95b9664e9bd06f","user":{"login":"tomislavperich","id":5732832,"node_id":"MDQ6VXNlcjU3MzI4MzI=","avatar_url":"https://avatars1.githubusercontent.com/u/5732832?v=4","gravatar_id":"","url":"https://api.github.com/users/tomislavperich","html_url":"https://github.com/tomislavperich","followers_url":"https://api.github.com/users/tomislavperich/followers","following_url":"https://api.github.com/users/tomislavperich/following{/other_user}","gists_url":"https://api.github.com/users/tomislavperich/gists{/gist_id}","starred_url":"https://api.github.com/users/tomislavperich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomislavperich/subscriptions","organizations_url":"https://api.github.com/users/tomislavperich/orgs","repos_url":"https://api.github.com/users/tomislavperich/repos","events_url":"https://api.github.com/users/tomislavperich/events{/privacy}","received_events_url":"https://api.github.com/users/tomislavperich/received_events","type":"User","site_admin":false},"repo":{"id":160832952,"node_id":"MDEwOlJlcG9zaXRvcnkxNjA4MzI5NTI=","name":"vivify-todoapp-frontend","full_name":"tomislavperich/vivify-todoapp-frontend","private":false,"owner":{"login":"tomislavperich","id":5732832,"node_id":"MDQ6VXNlcjU3MzI4MzI=","avatar_url":"https://avatars1.githubusercontent.com/u/5732832?v=4","gravatar_id":"","url":"https://api.github.com/users/tomislavperich","html_url":"https://github.com/tomislavperich","followers_url":"https://api.github.com/users/tomislavperich/followers","following_url":"https://api.github.com/users/tomislavperich/following{/other_user}","gists_url":"https://api.github.com/users/tomislavperich/gists{/gist_id}","starred_url":"https://api.github.com/users/tomislavperich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomislavperich/subscriptions","organizations_url":"https://api.github.com/users/tomislavperich/orgs","repos_url":"https://api.github.com/users/tomislavperich/repos","events_url":"https://api.github.com/users/tomislavperich/events{/privacy}","received_events_url":"https://api.github.com/users/tomislavperich/received_events","type":"User","site_admin":false},"html_url":"https://github.com/tomislavperich/vivify-todoapp-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend","forks_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/forks","keys_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/teams","hooks_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/hooks","issue_events_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/events","assignees_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/tags","blobs_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/languages","stargazers_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/stargazers","contributors_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/contributors","subscribers_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/subscribers","subscription_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/subscription","commits_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/merges","archive_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/downloads","issues_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/labels{/name}","releases_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/deployments","created_at":"2018-12-07T14:19:25Z","updated_at":"2018-12-07T14:20:13Z","pushed_at":"2018-12-10T13:18:29Z","git_url":"git://github.com/tomislavperich/vivify-todoapp-frontend.git","ssh_url":"git@github.com:tomislavperich/vivify-todoapp-frontend.git","clone_url":"https://github.com/tomislavperich/vivify-todoapp-frontend.git","svn_url":"https://github.com/tomislavperich/vivify-todoapp-frontend","homepage":null,"size":180,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/pulls/1"},"html":{"href":"https://github.com/tomislavperich/vivify-todoapp-frontend/pull/1"},"issue":{"href":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/issues/1"},"comments":{"href":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/tomislavperich/vivify-todoapp-frontend/statuses/0eec06818fb7384f46a1610f4e1dd45c7f32fe2e"}},"author_association":"OWNER"}}
{"actor":{"display_login":"AlexSensei"}}