{"action":"opened","issue":{"url":"https://api.github.com/repos/WDI-HK-7/connecTree/issues/16","labels_url":"https://api.github.com/repos/WDI-HK-7/connecTree/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/WDI-HK-7/connecTree/issues/16/comments","events_url":"https://api.github.com/repos/WDI-HK-7/connecTree/issues/16/events","html_url":"https://github.com/WDI-HK-7/connecTree/issues/16","id":86418508,"number":16,"title":"User already registered doesn't return an error","user":{"login":"f3r","id":970858,"avatar_url":"https://avatars.githubusercontent.com/u/970858?v=3","gravatar_id":"","url":"https://api.github.com/users/f3r","html_url":"https://github.com/f3r","followers_url":"https://api.github.com/users/f3r/followers","following_url":"https://api.github.com/users/f3r/following{/other_user}","gists_url":"https://api.github.com/users/f3r/gists{/gist_id}","starred_url":"https://api.github.com/users/f3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f3r/subscriptions","organizations_url":"https://api.github.com/users/f3r/orgs","repos_url":"https://api.github.com/users/f3r/repos","events_url":"https://api.github.com/users/f3r/events{/privacy}","received_events_url":"https://api.github.com/users/f3r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-09T02:48:36Z","updated_at":"2015-06-09T02:48:36Z","closed_at":null,"body":"The backend should return an error message and be displayed in the front-end\r\n\r\n```\r\nStarted POST \"/users.json\" for ::1 at 2015-06-09 10:46:45 +0800\r\nProcessing by Users::RegistrationsController#create as JSON\r\n  Parameters: {\"user\"=>{\"name\"=>\"Fer Martin\", \"email\"=>\"fer@fer.com\", \"password\"=>\"[FILTERED]\", \"password_confirmation\"=>\"[FILTERED]\"}, \"registration\"=>{\"user\"=>{\"name\"=>\"Fer Martin\", \"email\"=>\"fer@fer.com\", \"password\"=>\"[FILTERED]\", \"password_confirmation\"=>\"[FILTERED]\"}}}\r\n   (1.8ms)  BEGIN\r\n  User Exists (8.9ms)  SELECT  1 AS one FROM \"users\" WHERE \"users\".\"email\" = 'fer@fer.com' LIMIT 1\r\n   (1.3ms)  ROLLBACK\r\nCompleted 422 Unprocessable Entity in 274ms (Views: 0.8ms | ActiveRecord: 37.4ms)\r\n```\r\n\r\n"}}