{"action":"created","comment":{"url":"https://api.github.com/repos/CCI-MOC/setpass/pulls/comments/108982752","pull_request_review_id":30054321,"id":108982752,"diff_hunk":"@@ -166,5 +168,46 @@ def add(user_id):\n     return Response(response=user.token, status=200)\n \n \n+@wsgi.app.route('/reset', methods=['GET'])\n+def view_reset_form():\n+    return render_template('reset_form.html')\n+","path":"setpass/api.py","position":18,"original_position":18,"commit_id":"a10fba8666ed074c1a99dc7cfb37626119d043f3","original_commit_id":"a10fba8666ed074c1a99dc7cfb37626119d043f3","user":{"login":"jeremyfreudberg","id":16519305,"avatar_url":"https://avatars2.githubusercontent.com/u/16519305?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyfreudberg","html_url":"https://github.com/jeremyfreudberg","followers_url":"https://api.github.com/users/jeremyfreudberg/followers","following_url":"https://api.github.com/users/jeremyfreudberg/following{/other_user}","gists_url":"https://api.github.com/users/jeremyfreudberg/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyfreudberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyfreudberg/subscriptions","organizations_url":"https://api.github.com/users/jeremyfreudberg/orgs","repos_url":"https://api.github.com/users/jeremyfreudberg/repos","events_url":"https://api.github.com/users/jeremyfreudberg/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyfreudberg/received_events","type":"User","site_admin":false},"body":"theoretically these two views can be combined, i.e. `methods=['GET', POST']` then inside the function do `if request.method == 'POST':` etc (`from flask import request` needed)  \r\n\r\nagain, not sure if it's really cleaner one way or the other, just thought I would mention","created_at":"2017-03-30T17:09:27Z","updated_at":"2017-03-30T17:09:27Z","html_url":"https://github.com/CCI-MOC/setpass/pull/6#discussion_r108982752","pull_request_url":"https://api.github.com/repos/CCI-MOC/setpass/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/CCI-MOC/setpass/pulls/comments/108982752"},"html":{"href":"https://github.com/CCI-MOC/setpass/pull/6#discussion_r108982752"},"pull_request":{"href":"https://api.github.com/repos/CCI-MOC/setpass/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/CCI-MOC/setpass/pulls/6","id":113306782,"html_url":"https://github.com/CCI-MOC/setpass/pull/6","diff_url":"https://github.com/CCI-MOC/setpass/pull/6.diff","patch_url":"https://github.com/CCI-MOC/setpass/pull/6.patch","issue_url":"https://api.github.com/repos/CCI-MOC/setpass/issues/6","number":6,"state":"open","locked":false,"title":"add a form to generate a password reset request","user":{"login":"kamfonik","id":5913173,"avatar_url":"https://avatars0.githubusercontent.com/u/5913173?v=3","gravatar_id":"","url":"https://api.github.com/users/kamfonik","html_url":"https://github.com/kamfonik","followers_url":"https://api.github.com/users/kamfonik/followers","following_url":"https://api.github.com/users/kamfonik/following{/other_user}","gists_url":"https://api.github.com/users/kamfonik/gists{/gist_id}","starred_url":"https://api.github.com/users/kamfonik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamfonik/subscriptions","organizations_url":"https://api.github.com/users/kamfonik/orgs","repos_url":"https://api.github.com/users/kamfonik/repos","events_url":"https://api.github.com/users/kamfonik/events{/privacy}","received_events_url":"https://api.github.com/users/kamfonik/received_events","type":"User","site_admin":false},"body":"First try at a form that users can use to request a password reset.  Since Setpass itself doesn't know the admin credentials, this cannot be fully automated at this time.  \r\n\r\nSo, instead we generate a ticket to the helpdesk, and they will reset the password using the [moc-openstack-tools](https://github.com/CCI-MOC/moc-openstack-tools) scripts.","created_at":"2017-03-29T22:14:25Z","updated_at":"2017-03-30T17:09:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ca0408a1adde3ee6fa52c9f7b6e5f9b817755c5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CCI-MOC/setpass/pulls/6/commits","review_comments_url":"https://api.github.com/repos/CCI-MOC/setpass/pulls/6/comments","review_comment_url":"https://api.github.com/repos/CCI-MOC/setpass/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CCI-MOC/setpass/issues/6/comments","statuses_url":"https://api.github.com/repos/CCI-MOC/setpass/statuses/a10fba8666ed074c1a99dc7cfb37626119d043f3","head":{"label":"kamfonik:password-reset-form","ref":"password-reset-form","sha":"a10fba8666ed074c1a99dc7cfb37626119d043f3","user":{"login":"kamfonik","id":5913173,"avatar_url":"https://avatars0.githubusercontent.com/u/5913173?v=3","gravatar_id":"","url":"https://api.github.com/users/kamfonik","html_url":"https://github.com/kamfonik","followers_url":"https://api.github.com/users/kamfonik/followers","following_url":"https://api.github.com/users/kamfonik/following{/other_user}","gists_url":"https://api.github.com/users/kamfonik/gists{/gist_id}","starred_url":"https://api.github.com/users/kamfonik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamfonik/subscriptions","organizations_url":"https://api.github.com/users/kamfonik/orgs","repos_url":"https://api.github.com/users/kamfonik/repos","events_url":"https://api.github.com/users/kamfonik/events{/privacy}","received_events_url":"https://api.github.com/users/kamfonik/received_events","type":"User","site_admin":false},"repo":{"id":76897193,"name":"setpass","full_name":"kamfonik/setpass","owner":{"login":"kamfonik","id":5913173,"avatar_url":"https://avatars0.githubusercontent.com/u/5913173?v=3","gravatar_id":"","url":"https://api.github.com/users/kamfonik","html_url":"https://github.com/kamfonik","followers_url":"https://api.github.com/users/kamfonik/followers","following_url":"https://api.github.com/users/kamfonik/following{/other_user}","gists_url":"https://api.github.com/users/kamfonik/gists{/gist_id}","starred_url":"https://api.github.com/users/kamfonik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamfonik/subscriptions","organizations_url":"https://api.github.com/users/kamfonik/orgs","repos_url":"https://api.github.com/users/kamfonik/repos","events_url":"https://api.github.com/users/kamfonik/events{/privacy}","received_events_url":"https://api.github.com/users/kamfonik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kamfonik/setpass","description":null,"fork":true,"url":"https://api.github.com/repos/kamfonik/setpass","forks_url":"https://api.github.com/repos/kamfonik/setpass/forks","keys_url":"https://api.github.com/repos/kamfonik/setpass/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kamfonik/setpass/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kamfonik/setpass/teams","hooks_url":"https://api.github.com/repos/kamfonik/setpass/hooks","issue_events_url":"https://api.github.com/repos/kamfonik/setpass/issues/events{/number}","events_url":"https://api.github.com/repos/kamfonik/setpass/events","assignees_url":"https://api.github.com/repos/kamfonik/setpass/assignees{/user}","branches_url":"https://api.github.com/repos/kamfonik/setpass/branches{/branch}","tags_url":"https://api.github.com/repos/kamfonik/setpass/tags","blobs_url":"https://api.github.com/repos/kamfonik/setpass/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kamfonik/setpass/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kamfonik/setpass/git/refs{/sha}","trees_url":"https://api.github.com/repos/kamfonik/setpass/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kamfonik/setpass/statuses/{sha}","languages_url":"https://api.github.com/repos/kamfonik/setpass/languages","stargazers_url":"https://api.github.com/repos/kamfonik/setpass/stargazers","contributors_url":"https://api.github.com/repos/kamfonik/setpass/contributors","subscribers_url":"https://api.github.com/repos/kamfonik/setpass/subscribers","subscription_url":"https://api.github.com/repos/kamfonik/setpass/subscription","commits_url":"https://api.github.com/repos/kamfonik/setpass/commits{/sha}","git_commits_url":"https://api.github.com/repos/kamfonik/setpass/git/commits{/sha}","comments_url":"https://api.github.com/repos/kamfonik/setpass/comments{/number}","issue_comment_url":"https://api.github.com/repos/kamfonik/setpass/issues/comments{/number}","contents_url":"https://api.github.com/repos/kamfonik/setpass/contents/{+path}","compare_url":"https://api.github.com/repos/kamfonik/setpass/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kamfonik/setpass/merges","archive_url":"https://api.github.com/repos/kamfonik/setpass/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kamfonik/setpass/downloads","issues_url":"https://api.github.com/repos/kamfonik/setpass/issues{/number}","pulls_url":"https://api.github.com/repos/kamfonik/setpass/pulls{/number}","milestones_url":"https://api.github.com/repos/kamfonik/setpass/milestones{/number}","notifications_url":"https://api.github.com/repos/kamfonik/setpass/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kamfonik/setpass/labels{/name}","releases_url":"https://api.github.com/repos/kamfonik/setpass/releases{/id}","deployments_url":"https://api.github.com/repos/kamfonik/setpass/deployments","created_at":"2016-12-19T21:05:02Z","updated_at":"2016-12-19T21:05:03Z","pushed_at":"2017-03-29T21:31:53Z","git_url":"git://github.com/kamfonik/setpass.git","ssh_url":"git@github.com:kamfonik/setpass.git","clone_url":"https://github.com/kamfonik/setpass.git","svn_url":"https://github.com/kamfonik/setpass","homepage":null,"size":33,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CCI-MOC:master","ref":"master","sha":"3c637d80b6c68c312823db16b498169792c68bc0","user":{"login":"CCI-MOC","id":3578683,"avatar_url":"https://avatars2.githubusercontent.com/u/3578683?v=3","gravatar_id":"","url":"https://api.github.com/users/CCI-MOC","html_url":"https://github.com/CCI-MOC","followers_url":"https://api.github.com/users/CCI-MOC/followers","following_url":"https://api.github.com/users/CCI-MOC/following{/other_user}","gists_url":"https://api.github.com/users/CCI-MOC/gists{/gist_id}","starred_url":"https://api.github.com/users/CCI-MOC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CCI-MOC/subscriptions","organizations_url":"https://api.github.com/users/CCI-MOC/orgs","repos_url":"https://api.github.com/users/CCI-MOC/repos","events_url":"https://api.github.com/users/CCI-MOC/events{/privacy}","received_events_url":"https://api.github.com/users/CCI-MOC/received_events","type":"Organization","site_admin":false},"repo":{"id":70121603,"name":"setpass","full_name":"CCI-MOC/setpass","owner":{"login":"CCI-MOC","id":3578683,"avatar_url":"https://avatars2.githubusercontent.com/u/3578683?v=3","gravatar_id":"","url":"https://api.github.com/users/CCI-MOC","html_url":"https://github.com/CCI-MOC","followers_url":"https://api.github.com/users/CCI-MOC/followers","following_url":"https://api.github.com/users/CCI-MOC/following{/other_user}","gists_url":"https://api.github.com/users/CCI-MOC/gists{/gist_id}","starred_url":"https://api.github.com/users/CCI-MOC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CCI-MOC/subscriptions","organizations_url":"https://api.github.com/users/CCI-MOC/orgs","repos_url":"https://api.github.com/users/CCI-MOC/repos","events_url":"https://api.github.com/users/CCI-MOC/events{/privacy}","received_events_url":"https://api.github.com/users/CCI-MOC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CCI-MOC/setpass","description":null,"fork":false,"url":"https://api.github.com/repos/CCI-MOC/setpass","forks_url":"https://api.github.com/repos/CCI-MOC/setpass/forks","keys_url":"https://api.github.com/repos/CCI-MOC/setpass/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CCI-MOC/setpass/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CCI-MOC/setpass/teams","hooks_url":"https://api.github.com/repos/CCI-MOC/setpass/hooks","issue_events_url":"https://api.github.com/repos/CCI-MOC/setpass/issues/events{/number}","events_url":"https://api.github.com/repos/CCI-MOC/setpass/events","assignees_url":"https://api.github.com/repos/CCI-MOC/setpass/assignees{/user}","branches_url":"https://api.github.com/repos/CCI-MOC/setpass/branches{/branch}","tags_url":"https://api.github.com/repos/CCI-MOC/setpass/tags","blobs_url":"https://api.github.com/repos/CCI-MOC/setpass/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CCI-MOC/setpass/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CCI-MOC/setpass/git/refs{/sha}","trees_url":"https://api.github.com/repos/CCI-MOC/setpass/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CCI-MOC/setpass/statuses/{sha}","languages_url":"https://api.github.com/repos/CCI-MOC/setpass/languages","stargazers_url":"https://api.github.com/repos/CCI-MOC/setpass/stargazers","contributors_url":"https://api.github.com/repos/CCI-MOC/setpass/contributors","subscribers_url":"https://api.github.com/repos/CCI-MOC/setpass/subscribers","subscription_url":"https://api.github.com/repos/CCI-MOC/setpass/subscription","commits_url":"https://api.github.com/repos/CCI-MOC/setpass/commits{/sha}","git_commits_url":"https://api.github.com/repos/CCI-MOC/setpass/git/commits{/sha}","comments_url":"https://api.github.com/repos/CCI-MOC/setpass/comments{/number}","issue_comment_url":"https://api.github.com/repos/CCI-MOC/setpass/issues/comments{/number}","contents_url":"https://api.github.com/repos/CCI-MOC/setpass/contents/{+path}","compare_url":"https://api.github.com/repos/CCI-MOC/setpass/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CCI-MOC/setpass/merges","archive_url":"https://api.github.com/repos/CCI-MOC/setpass/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CCI-MOC/setpass/downloads","issues_url":"https://api.github.com/repos/CCI-MOC/setpass/issues{/number}","pulls_url":"https://api.github.com/repos/CCI-MOC/setpass/pulls{/number}","milestones_url":"https://api.github.com/repos/CCI-MOC/setpass/milestones{/number}","notifications_url":"https://api.github.com/repos/CCI-MOC/setpass/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CCI-MOC/setpass/labels{/name}","releases_url":"https://api.github.com/repos/CCI-MOC/setpass/releases{/id}","deployments_url":"https://api.github.com/repos/CCI-MOC/setpass/deployments","created_at":"2016-10-06T04:10:36Z","updated_at":"2017-01-11T20:59:38Z","pushed_at":"2017-03-29T22:14:25Z","git_url":"git://github.com/CCI-MOC/setpass.git","ssh_url":"git@github.com:CCI-MOC/setpass.git","clone_url":"https://github.com/CCI-MOC/setpass.git","svn_url":"https://github.com/CCI-MOC/setpass","homepage":null,"size":31,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CCI-MOC/setpass/pulls/6"},"html":{"href":"https://github.com/CCI-MOC/setpass/pull/6"},"issue":{"href":"https://api.github.com/repos/CCI-MOC/setpass/issues/6"},"comments":{"href":"https://api.github.com/repos/CCI-MOC/setpass/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/CCI-MOC/setpass/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/CCI-MOC/setpass/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CCI-MOC/setpass/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/CCI-MOC/setpass/statuses/a10fba8666ed074c1a99dc7cfb37626119d043f3"}}}}
{"actor":{"display_login":"jeremyfreudberg"}}