{"action":"created","comment":{"url":"https://api.github.com/repos/EpamLab2018/MagazineStore/pulls/comments/165274520","pull_request_review_id":93183700,"id":165274520,"diff_hunk":"@@ -100,21 +111,21 @@ public ModelAndView login(ModelAndView modelAndView, HttpSession session) {\n     }\n \n     @PostMapping(value = CREATE_ACCOUNT)\n-    public ModelAndView createAccount(@RequestParam(\"name\") String name, @RequestParam(\"password\") String password, ModelAndView modelAndView) {\n+    public ModelAndView createAccount(@RequestParam(\"name\") String name, @RequestParam(\"password\") String password, ModelAndView modelAndView, HttpSession session, Locale locale) {\n \n         if (accountService.isUserNameExists(name)) {\n-            String message = UNSUCCESSFUL_REGISTRATION;\n-            modelAndView.addObject(MESSAGE, message);\n-            modelAndView.setViewName(REGISTRATION_JSP);\n+            String errorMessage = messageSource.getMessage(ERROR_REGISTRATION, null, locale);\n+            session.setAttribute(MESSAGE, errorMessage);\n+            modelAndView.setViewName(\"redirect:\" + REGISTRATION);\n         } else {\n             Account account = new Account();","path":"src/main/java/com/epam/magazinestore/controller/AccountController.java","position":91,"original_position":91,"commit_id":"1a4ccd4d02218fb1278929f851b6c1dcf6cb6cff","original_commit_id":"1a4ccd4d02218fb1278929f851b6c1dcf6cb6cff","user":{"login":"AntonKiselyov","id":5787435,"avatar_url":"https://avatars0.githubusercontent.com/u/5787435?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonKiselyov","html_url":"https://github.com/AntonKiselyov","followers_url":"https://api.github.com/users/AntonKiselyov/followers","following_url":"https://api.github.com/users/AntonKiselyov/following{/other_user}","gists_url":"https://api.github.com/users/AntonKiselyov/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonKiselyov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonKiselyov/subscriptions","organizations_url":"https://api.github.com/users/AntonKiselyov/orgs","repos_url":"https://api.github.com/users/AntonKiselyov/repos","events_url":"https://api.github.com/users/AntonKiselyov/events{/privacy}","received_events_url":"https://api.github.com/users/AntonKiselyov/received_events","type":"User","site_admin":false},"body":"What about builder ?\r\n\r\nAlso controllers mustn't contain any business logic!","created_at":"2018-02-01T07:13:22Z","updated_at":"2018-02-01T07:13:22Z","html_url":"https://github.com/EpamLab2018/MagazineStore/pull/75#discussion_r165274520","pull_request_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/pulls/75","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/EpamLab2018/MagazineStore/pulls/comments/165274520"},"html":{"href":"https://github.com/EpamLab2018/MagazineStore/pull/75#discussion_r165274520"},"pull_request":{"href":"https://api.github.com/repos/EpamLab2018/MagazineStore/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/EpamLab2018/MagazineStore/pulls/75","id":166375644,"html_url":"https://github.com/EpamLab2018/MagazineStore/pull/75","diff_url":"https://github.com/EpamLab2018/MagazineStore/pull/75.diff","patch_url":"https://github.com/EpamLab2018/MagazineStore/pull/75.patch","issue_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/issues/75","number":75,"state":"closed","locked":false,"title":"1) registration style and authorization style are changed","user":{"login":"vakhonin","id":29901003,"avatar_url":"https://avatars2.githubusercontent.com/u/29901003?v=4","gravatar_id":"","url":"https://api.github.com/users/vakhonin","html_url":"https://github.com/vakhonin","followers_url":"https://api.github.com/users/vakhonin/followers","following_url":"https://api.github.com/users/vakhonin/following{/other_user}","gists_url":"https://api.github.com/users/vakhonin/gists{/gist_id}","starred_url":"https://api.github.com/users/vakhonin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vakhonin/subscriptions","organizations_url":"https://api.github.com/users/vakhonin/orgs","repos_url":"https://api.github.com/users/vakhonin/repos","events_url":"https://api.github.com/users/vakhonin/events{/privacy}","received_events_url":"https://api.github.com/users/vakhonin/received_events","type":"User","site_admin":false},"body":"2) MessageUtil.class is removed","created_at":"2018-01-31T21:05:19Z","updated_at":"2018-02-01T07:13:22Z","closed_at":"2018-01-31T21:07:28Z","merged_at":"2018-01-31T21:07:28Z","merge_commit_sha":"fdaa1f39131db3c156abc29f1d5ea7cd5a284f2e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Jebsuz","id":5747696,"avatar_url":"https://avatars3.githubusercontent.com/u/5747696?v=4","gravatar_id":"","url":"https://api.github.com/users/Jebsuz","html_url":"https://github.com/Jebsuz","followers_url":"https://api.github.com/users/Jebsuz/followers","following_url":"https://api.github.com/users/Jebsuz/following{/other_user}","gists_url":"https://api.github.com/users/Jebsuz/gists{/gist_id}","starred_url":"https://api.github.com/users/Jebsuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jebsuz/subscriptions","organizations_url":"https://api.github.com/users/Jebsuz/orgs","repos_url":"https://api.github.com/users/Jebsuz/repos","events_url":"https://api.github.com/users/Jebsuz/events{/privacy}","received_events_url":"https://api.github.com/users/Jebsuz/received_events","type":"User","site_admin":false}],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/pulls/75/commits","review_comments_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/pulls/75/comments","review_comment_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/issues/75/comments","statuses_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/statuses/1a4ccd4d02218fb1278929f851b6c1dcf6cb6cff","head":{"label":"EpamLab2018:adding_styles_to_registration_form","ref":"adding_styles_to_registration_form","sha":"1a4ccd4d02218fb1278929f851b6c1dcf6cb6cff","user":{"login":"EpamLab2018","id":35528492,"avatar_url":"https://avatars2.githubusercontent.com/u/35528492?v=4","gravatar_id":"","url":"https://api.github.com/users/EpamLab2018","html_url":"https://github.com/EpamLab2018","followers_url":"https://api.github.com/users/EpamLab2018/followers","following_url":"https://api.github.com/users/EpamLab2018/following{/other_user}","gists_url":"https://api.github.com/users/EpamLab2018/gists{/gist_id}","starred_url":"https://api.github.com/users/EpamLab2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EpamLab2018/subscriptions","organizations_url":"https://api.github.com/users/EpamLab2018/orgs","repos_url":"https://api.github.com/users/EpamLab2018/repos","events_url":"https://api.github.com/users/EpamLab2018/events{/privacy}","received_events_url":"https://api.github.com/users/EpamLab2018/received_events","type":"Organization","site_admin":false},"repo":{"id":117850315,"name":"MagazineStore","full_name":"EpamLab2018/MagazineStore","owner":{"login":"EpamLab2018","id":35528492,"avatar_url":"https://avatars2.githubusercontent.com/u/35528492?v=4","gravatar_id":"","url":"https://api.github.com/users/EpamLab2018","html_url":"https://github.com/EpamLab2018","followers_url":"https://api.github.com/users/EpamLab2018/followers","following_url":"https://api.github.com/users/EpamLab2018/following{/other_user}","gists_url":"https://api.github.com/users/EpamLab2018/gists{/gist_id}","starred_url":"https://api.github.com/users/EpamLab2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EpamLab2018/subscriptions","organizations_url":"https://api.github.com/users/EpamLab2018/orgs","repos_url":"https://api.github.com/users/EpamLab2018/repos","events_url":"https://api.github.com/users/EpamLab2018/events{/privacy}","received_events_url":"https://api.github.com/users/EpamLab2018/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EpamLab2018/MagazineStore","description":"Epam Lab Project","fork":false,"url":"https://api.github.com/repos/EpamLab2018/MagazineStore","forks_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/forks","keys_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/teams","hooks_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/hooks","issue_events_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/issues/events{/number}","events_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/events","assignees_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/assignees{/user}","branches_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/branches{/branch}","tags_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/tags","blobs_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/git/refs{/sha}","trees_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/statuses/{sha}","languages_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/languages","stargazers_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/stargazers","contributors_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/contributors","subscribers_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/subscribers","subscription_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/subscription","commits_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/commits{/sha}","git_commits_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/git/commits{/sha}","comments_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/comments{/number}","issue_comment_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/issues/comments{/number}","contents_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/contents/{+path}","compare_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/merges","archive_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/downloads","issues_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/issues{/number}","pulls_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/pulls{/number}","milestones_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/milestones{/number}","notifications_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/labels{/name}","releases_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/releases{/id}","deployments_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/deployments","created_at":"2018-01-17T14:53:13Z","updated_at":"2018-01-22T14:52:58Z","pushed_at":"2018-01-31T21:07:28Z","git_url":"git://github.com/EpamLab2018/MagazineStore.git","ssh_url":"git@github.com:EpamLab2018/MagazineStore.git","clone_url":"https://github.com/EpamLab2018/MagazineStore.git","svn_url":"https://github.com/EpamLab2018/MagazineStore","homepage":"","size":328,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"EpamLab2018:dev","ref":"dev","sha":"c7f7c795649c7a68732bdce612791dff11cfb5f3","user":{"login":"EpamLab2018","id":35528492,"avatar_url":"https://avatars2.githubusercontent.com/u/35528492?v=4","gravatar_id":"","url":"https://api.github.com/users/EpamLab2018","html_url":"https://github.com/EpamLab2018","followers_url":"https://api.github.com/users/EpamLab2018/followers","following_url":"https://api.github.com/users/EpamLab2018/following{/other_user}","gists_url":"https://api.github.com/users/EpamLab2018/gists{/gist_id}","starred_url":"https://api.github.com/users/EpamLab2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EpamLab2018/subscriptions","organizations_url":"https://api.github.com/users/EpamLab2018/orgs","repos_url":"https://api.github.com/users/EpamLab2018/repos","events_url":"https://api.github.com/users/EpamLab2018/events{/privacy}","received_events_url":"https://api.github.com/users/EpamLab2018/received_events","type":"Organization","site_admin":false},"repo":{"id":117850315,"name":"MagazineStore","full_name":"EpamLab2018/MagazineStore","owner":{"login":"EpamLab2018","id":35528492,"avatar_url":"https://avatars2.githubusercontent.com/u/35528492?v=4","gravatar_id":"","url":"https://api.github.com/users/EpamLab2018","html_url":"https://github.com/EpamLab2018","followers_url":"https://api.github.com/users/EpamLab2018/followers","following_url":"https://api.github.com/users/EpamLab2018/following{/other_user}","gists_url":"https://api.github.com/users/EpamLab2018/gists{/gist_id}","starred_url":"https://api.github.com/users/EpamLab2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EpamLab2018/subscriptions","organizations_url":"https://api.github.com/users/EpamLab2018/orgs","repos_url":"https://api.github.com/users/EpamLab2018/repos","events_url":"https://api.github.com/users/EpamLab2018/events{/privacy}","received_events_url":"https://api.github.com/users/EpamLab2018/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EpamLab2018/MagazineStore","description":"Epam Lab Project","fork":false,"url":"https://api.github.com/repos/EpamLab2018/MagazineStore","forks_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/forks","keys_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/teams","hooks_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/hooks","issue_events_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/issues/events{/number}","events_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/events","assignees_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/assignees{/user}","branches_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/branches{/branch}","tags_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/tags","blobs_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/git/refs{/sha}","trees_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/statuses/{sha}","languages_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/languages","stargazers_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/stargazers","contributors_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/contributors","subscribers_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/subscribers","subscription_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/subscription","commits_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/commits{/sha}","git_commits_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/git/commits{/sha}","comments_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/comments{/number}","issue_comment_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/issues/comments{/number}","contents_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/contents/{+path}","compare_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/merges","archive_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/downloads","issues_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/issues{/number}","pulls_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/pulls{/number}","milestones_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/milestones{/number}","notifications_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/labels{/name}","releases_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/releases{/id}","deployments_url":"https://api.github.com/repos/EpamLab2018/MagazineStore/deployments","created_at":"2018-01-17T14:53:13Z","updated_at":"2018-01-22T14:52:58Z","pushed_at":"2018-01-31T21:07:28Z","git_url":"git://github.com/EpamLab2018/MagazineStore.git","ssh_url":"git@github.com:EpamLab2018/MagazineStore.git","clone_url":"https://github.com/EpamLab2018/MagazineStore.git","svn_url":"https://github.com/EpamLab2018/MagazineStore","homepage":"","size":328,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EpamLab2018/MagazineStore/pulls/75"},"html":{"href":"https://github.com/EpamLab2018/MagazineStore/pull/75"},"issue":{"href":"https://api.github.com/repos/EpamLab2018/MagazineStore/issues/75"},"comments":{"href":"https://api.github.com/repos/EpamLab2018/MagazineStore/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/EpamLab2018/MagazineStore/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/EpamLab2018/MagazineStore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EpamLab2018/MagazineStore/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/EpamLab2018/MagazineStore/statuses/1a4ccd4d02218fb1278929f851b6c1dcf6cb6cff"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"AntonKiselyov"}}