{"action":"opened","number":52,"pull_request":{"url":"https://api.github.com/repos/andela/ah-code-blooded/pulls/52","id":230461020,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNDYxMDIw","html_url":"https://github.com/andela/ah-code-blooded/pull/52","diff_url":"https://github.com/andela/ah-code-blooded/pull/52.diff","patch_url":"https://github.com/andela/ah-code-blooded/pull/52.patch","issue_url":"https://api.github.com/repos/andela/ah-code-blooded/issues/52","number":52,"state":"open","locked":false,"title":" #161913436 Fix account verification bug","user":{"login":"charisschomba","id":40663486,"node_id":"MDQ6VXNlcjQwNjYzNDg2","avatar_url":"https://avatars3.githubusercontent.com/u/40663486?v=4","gravatar_id":"","url":"https://api.github.com/users/charisschomba","html_url":"https://github.com/charisschomba","followers_url":"https://api.github.com/users/charisschomba/followers","following_url":"https://api.github.com/users/charisschomba/following{/other_user}","gists_url":"https://api.github.com/users/charisschomba/gists{/gist_id}","starred_url":"https://api.github.com/users/charisschomba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charisschomba/subscriptions","organizations_url":"https://api.github.com/users/charisschomba/orgs","repos_url":"https://api.github.com/users/charisschomba/repos","events_url":"https://api.github.com/users/charisschomba/events{/privacy}","received_events_url":"https://api.github.com/users/charisschomba/received_events","type":"User","site_admin":false},"body":"**What does this PR do?**\r\n\r\nThis PR fixes the process behind account verification bug. The account verification link that is sent to the email redirects to the backend via DRF browsable API.\r\n\r\n<img width=\"681\" alt=\"screen shot 2018-11-13 at 15 04 44\" src=\"https://user-images.githubusercontent.com/40663486/48412680-702cfb80-e756-11e8-9992-ed110909fc05.png\">\r\n\r\n\r\nWith this behaviour, it is impossible to consume the API from the frontend application. To fix the issue the  verification link should redirects to the frontend application.\r\n\r\n**Description of Task to be completed?**\r\n\r\n##### Steps to reproduce\r\n1. Create a new account (verification is sent to email\")\r\n2. Open verification link on email.\r\n\r\n##### Expected\r\nYou should be redirected to the frontend application with the verification token and uid as a parameters.\r\n\r\n##### Actual\r\nYou are redirected to the DRF browsable API.\r\n\r\n**How should this be manually tested?**\r\nThis can be manually tested by following the following steps using Postman.\r\n1. Register as user.\r\n```\r\nPOST /users\r\n{\r\n\t\"user\": {\r\n\t\t\"email\": \"<your_email>@gmail.com\",\r\n\t\t\"password\": \"#haiqPY123\",\r\n\t\t\"username\": \"<your_username>\"\r\n\t}\r\n}\r\n\r\nYou will receive a verification  link on the email.\r\n3. Follow the link and it will resolve to the frontend application with the verification token  and uid as parameter e.g. http://localhost:3000/activate-account?token=519-6edd3d76e68e6d40879e&uid=Y2hvbWJh\r\n4. Copy the token and uid parameters and use it to verify account.\r\n```\r\nGET /users/verify-account/519-6edd3d76e68e6d40879/Y2hvbWJh/\r\n```\r\nYou will receive a response indicating that the account has been verified.\r\n\r\n**What are the relevant pivotal tracker stories?**\r\n\r\n[#161913436](https://www.pivotaltracker.com/story/show/161913436)\r\n\r\n\r\n**Screenshots**\r\n<img width=\"902\" alt=\"screen shot 2018-11-13 at 15 32 59\" src=\"https://user-images.githubusercontent.com/40663486/48413658-72dd2000-e759-11e8-8e55-1342089d33da.png\">\r\n","created_at":"2018-11-13T12:41:33Z","updated_at":"2018-11-13T12:41:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/ah-code-blooded/pulls/52/commits","review_comments_url":"https://api.github.com/repos/andela/ah-code-blooded/pulls/52/comments","review_comment_url":"https://api.github.com/repos/andela/ah-code-blooded/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/ah-code-blooded/issues/52/comments","statuses_url":"https://api.github.com/repos/andela/ah-code-blooded/statuses/c65fad57e57b77a52760de560748804de54097c7","head":{"label":"andela:fix-account-verification-#161913436","ref":"fix-account-verification-#161913436","sha":"c65fad57e57b77a52760de560748804de54097c7","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":149583386,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk1ODMzODY=","name":"ah-code-blooded","full_name":"andela/ah-code-blooded","private":false,"owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/andela/ah-code-blooded","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-code-blooded","forks_url":"https://api.github.com/repos/andela/ah-code-blooded/forks","keys_url":"https://api.github.com/repos/andela/ah-code-blooded/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-code-blooded/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-code-blooded/teams","hooks_url":"https://api.github.com/repos/andela/ah-code-blooded/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-code-blooded/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-code-blooded/events","assignees_url":"https://api.github.com/repos/andela/ah-code-blooded/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-code-blooded/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-code-blooded/tags","blobs_url":"https://api.github.com/repos/andela/ah-code-blooded/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-code-blooded/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-code-blooded/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-code-blooded/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-code-blooded/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-code-blooded/languages","stargazers_url":"https://api.github.com/repos/andela/ah-code-blooded/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-code-blooded/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-code-blooded/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-code-blooded/subscription","commits_url":"https://api.github.com/repos/andela/ah-code-blooded/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-code-blooded/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-code-blooded/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-code-blooded/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-code-blooded/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-code-blooded/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-code-blooded/merges","archive_url":"https://api.github.com/repos/andela/ah-code-blooded/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-code-blooded/downloads","issues_url":"https://api.github.com/repos/andela/ah-code-blooded/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-code-blooded/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-code-blooded/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-code-blooded/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-code-blooded/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-code-blooded/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-code-blooded/deployments","created_at":"2018-09-20T09:17:10Z","updated_at":"2018-11-13T12:12:01Z","pushed_at":"2018-11-13T12:11:59Z","git_url":"git://github.com/andela/ah-code-blooded.git","ssh_url":"git@github.com:andela/ah-code-blooded.git","clone_url":"https://github.com/andela/ah-code-blooded.git","svn_url":"https://github.com/andela/ah-code-blooded","homepage":null,"size":2772,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":1,"watchers":2,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"0cf05e5199875b44a44cfcc4e8f4658c9bb5eba4","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":149583386,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk1ODMzODY=","name":"ah-code-blooded","full_name":"andela/ah-code-blooded","private":false,"owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/andela/ah-code-blooded","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-code-blooded","forks_url":"https://api.github.com/repos/andela/ah-code-blooded/forks","keys_url":"https://api.github.com/repos/andela/ah-code-blooded/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-code-blooded/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-code-blooded/teams","hooks_url":"https://api.github.com/repos/andela/ah-code-blooded/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-code-blooded/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-code-blooded/events","assignees_url":"https://api.github.com/repos/andela/ah-code-blooded/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-code-blooded/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-code-blooded/tags","blobs_url":"https://api.github.com/repos/andela/ah-code-blooded/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-code-blooded/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-code-blooded/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-code-blooded/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-code-blooded/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-code-blooded/languages","stargazers_url":"https://api.github.com/repos/andela/ah-code-blooded/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-code-blooded/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-code-blooded/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-code-blooded/subscription","commits_url":"https://api.github.com/repos/andela/ah-code-blooded/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-code-blooded/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-code-blooded/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-code-blooded/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-code-blooded/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-code-blooded/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-code-blooded/merges","archive_url":"https://api.github.com/repos/andela/ah-code-blooded/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-code-blooded/downloads","issues_url":"https://api.github.com/repos/andela/ah-code-blooded/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-code-blooded/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-code-blooded/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-code-blooded/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-code-blooded/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-code-blooded/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-code-blooded/deployments","created_at":"2018-09-20T09:17:10Z","updated_at":"2018-11-13T12:12:01Z","pushed_at":"2018-11-13T12:11:59Z","git_url":"git://github.com/andela/ah-code-blooded.git","ssh_url":"git@github.com:andela/ah-code-blooded.git","clone_url":"https://github.com/andela/ah-code-blooded.git","svn_url":"https://github.com/andela/ah-code-blooded","homepage":null,"size":2772,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":1,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/ah-code-blooded/pulls/52"},"html":{"href":"https://github.com/andela/ah-code-blooded/pull/52"},"issue":{"href":"https://api.github.com/repos/andela/ah-code-blooded/issues/52"},"comments":{"href":"https://api.github.com/repos/andela/ah-code-blooded/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/ah-code-blooded/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/ah-code-blooded/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/ah-code-blooded/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/andela/ah-code-blooded/statuses/c65fad57e57b77a52760de560748804de54097c7"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":10,"deletions":11,"changed_files":3}}
{"actor":{"display_login":"charisschomba"}}