{"action":"closed","number":97,"pull_request":{"url":"https://api.github.com/repos/terrestris/shogun2/pulls/97","id":53850225,"html_url":"https://github.com/terrestris/shogun2/pull/97","diff_url":"https://github.com/terrestris/shogun2/pull/97.diff","patch_url":"https://github.com/terrestris/shogun2/pull/97.patch","issue_url":"https://api.github.com/repos/terrestris/shogun2/issues/97","number":97,"state":"closed","locked":false,"title":"Reset & update password","user":{"login":"dnlkoch","id":1137620,"avatar_url":"https://avatars.githubusercontent.com/u/1137620?v=3","gravatar_id":"","url":"https://api.github.com/users/dnlkoch","html_url":"https://github.com/dnlkoch","followers_url":"https://api.github.com/users/dnlkoch/followers","following_url":"https://api.github.com/users/dnlkoch/following{/other_user}","gists_url":"https://api.github.com/users/dnlkoch/gists{/gist_id}","starred_url":"https://api.github.com/users/dnlkoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnlkoch/subscriptions","organizations_url":"https://api.github.com/users/dnlkoch/orgs","repos_url":"https://api.github.com/users/dnlkoch/repos","events_url":"https://api.github.com/users/dnlkoch/events{/privacy}","received_events_url":"https://api.github.com/users/dnlkoch/received_events","type":"User","site_admin":false},"body":"The logic presented in this PR allows any registered SHOGun2-User to reset their password manually.\r\n\r\nThis is done by the following workflow:\r\n\r\n* A user requests a password-reset by sending their account-email to the interface `resetPassword.action`, e.g.\r\n\r\n   `http://localhost:8080/shogun2/user/resetPassword.action?email=user@shogun2.de`\r\n\r\n* If the mail really exists, a new `PasswordResetToken` containing a unique token, expire date and user reference is being generated and persisted.\r\n\r\n* A special link for updating the password including this token and id will be send to the user, e.g.:\r\n\r\n  `http://localhost:8080/shogun2/login/#passwordchange?id={{token-id}}&token={{token}}`\r\n\r\n* The user will be redirected to a (client-)page to update their password if they follow the link.\r\n\r\n* The client sends a request to the `changePassword.action` with the provided token, token-id and password, e.g.:\r\n\r\n   `http://localhost:8080/shogun2/user/changePassword.action?password={{newPassword}}&id={{tokenId}}&token={{token}}`\r\n\r\n* If the token is valid (token exists and is not expired) the user will be authorized to change their password and the token will be deleted.","created_at":"2015-12-16T14:48:58Z","updated_at":"2015-12-23T10:19:50Z","closed_at":"2015-12-23T10:19:50Z","merged_at":"2015-12-23T10:19:50Z","merge_commit_sha":"9d7b1e9f37294ca758f64664df3239dff4745e7b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/terrestris/shogun2/pulls/97/commits","review_comments_url":"https://api.github.com/repos/terrestris/shogun2/pulls/97/comments","review_comment_url":"https://api.github.com/repos/terrestris/shogun2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/terrestris/shogun2/issues/97/comments","statuses_url":"https://api.github.com/repos/terrestris/shogun2/statuses/991ac79f9e339fd8b8a565982d80ed235765c177","head":{"label":"dnlkoch:resend-password-mail","ref":"resend-password-mail","sha":"991ac79f9e339fd8b8a565982d80ed235765c177","user":{"login":"dnlkoch","id":1137620,"avatar_url":"https://avatars.githubusercontent.com/u/1137620?v=3","gravatar_id":"","url":"https://api.github.com/users/dnlkoch","html_url":"https://github.com/dnlkoch","followers_url":"https://api.github.com/users/dnlkoch/followers","following_url":"https://api.github.com/users/dnlkoch/following{/other_user}","gists_url":"https://api.github.com/users/dnlkoch/gists{/gist_id}","starred_url":"https://api.github.com/users/dnlkoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnlkoch/subscriptions","organizations_url":"https://api.github.com/users/dnlkoch/orgs","repos_url":"https://api.github.com/users/dnlkoch/repos","events_url":"https://api.github.com/users/dnlkoch/events{/privacy}","received_events_url":"https://api.github.com/users/dnlkoch/received_events","type":"User","site_admin":false},"repo":{"id":44962831,"name":"shogun2","full_name":"dnlkoch/shogun2","owner":{"login":"dnlkoch","id":1137620,"avatar_url":"https://avatars.githubusercontent.com/u/1137620?v=3","gravatar_id":"","url":"https://api.github.com/users/dnlkoch","html_url":"https://github.com/dnlkoch","followers_url":"https://api.github.com/users/dnlkoch/followers","following_url":"https://api.github.com/users/dnlkoch/following{/other_user}","gists_url":"https://api.github.com/users/dnlkoch/gists{/gist_id}","starred_url":"https://api.github.com/users/dnlkoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnlkoch/subscriptions","organizations_url":"https://api.github.com/users/dnlkoch/orgs","repos_url":"https://api.github.com/users/dnlkoch/repos","events_url":"https://api.github.com/users/dnlkoch/events{/privacy}","received_events_url":"https://api.github.com/users/dnlkoch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dnlkoch/shogun2","description":"SHOGun2 is a Java based WebGIS framework.","fork":true,"url":"https://api.github.com/repos/dnlkoch/shogun2","forks_url":"https://api.github.com/repos/dnlkoch/shogun2/forks","keys_url":"https://api.github.com/repos/dnlkoch/shogun2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dnlkoch/shogun2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dnlkoch/shogun2/teams","hooks_url":"https://api.github.com/repos/dnlkoch/shogun2/hooks","issue_events_url":"https://api.github.com/repos/dnlkoch/shogun2/issues/events{/number}","events_url":"https://api.github.com/repos/dnlkoch/shogun2/events","assignees_url":"https://api.github.com/repos/dnlkoch/shogun2/assignees{/user}","branches_url":"https://api.github.com/repos/dnlkoch/shogun2/branches{/branch}","tags_url":"https://api.github.com/repos/dnlkoch/shogun2/tags","blobs_url":"https://api.github.com/repos/dnlkoch/shogun2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dnlkoch/shogun2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dnlkoch/shogun2/git/refs{/sha}","trees_url":"https://api.github.com/repos/dnlkoch/shogun2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dnlkoch/shogun2/statuses/{sha}","languages_url":"https://api.github.com/repos/dnlkoch/shogun2/languages","stargazers_url":"https://api.github.com/repos/dnlkoch/shogun2/stargazers","contributors_url":"https://api.github.com/repos/dnlkoch/shogun2/contributors","subscribers_url":"https://api.github.com/repos/dnlkoch/shogun2/subscribers","subscription_url":"https://api.github.com/repos/dnlkoch/shogun2/subscription","commits_url":"https://api.github.com/repos/dnlkoch/shogun2/commits{/sha}","git_commits_url":"https://api.github.com/repos/dnlkoch/shogun2/git/commits{/sha}","comments_url":"https://api.github.com/repos/dnlkoch/shogun2/comments{/number}","issue_comment_url":"https://api.github.com/repos/dnlkoch/shogun2/issues/comments{/number}","contents_url":"https://api.github.com/repos/dnlkoch/shogun2/contents/{+path}","compare_url":"https://api.github.com/repos/dnlkoch/shogun2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dnlkoch/shogun2/merges","archive_url":"https://api.github.com/repos/dnlkoch/shogun2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dnlkoch/shogun2/downloads","issues_url":"https://api.github.com/repos/dnlkoch/shogun2/issues{/number}","pulls_url":"https://api.github.com/repos/dnlkoch/shogun2/pulls{/number}","milestones_url":"https://api.github.com/repos/dnlkoch/shogun2/milestones{/number}","notifications_url":"https://api.github.com/repos/dnlkoch/shogun2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dnlkoch/shogun2/labels{/name}","releases_url":"https://api.github.com/repos/dnlkoch/shogun2/releases{/id}","created_at":"2015-10-26T10:58:36Z","updated_at":"2015-10-26T10:58:37Z","pushed_at":"2015-12-23T10:14:22Z","git_url":"git://github.com/dnlkoch/shogun2.git","ssh_url":"git@github.com:dnlkoch/shogun2.git","clone_url":"https://github.com/dnlkoch/shogun2.git","svn_url":"https://github.com/dnlkoch/shogun2","homepage":null,"size":660,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"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":"terrestris:master","ref":"master","sha":"01e8dcd3dac3f8d889eeb428c79f6700885c1823","user":{"login":"terrestris","id":1510416,"avatar_url":"https://avatars.githubusercontent.com/u/1510416?v=3","gravatar_id":"","url":"https://api.github.com/users/terrestris","html_url":"https://github.com/terrestris","followers_url":"https://api.github.com/users/terrestris/followers","following_url":"https://api.github.com/users/terrestris/following{/other_user}","gists_url":"https://api.github.com/users/terrestris/gists{/gist_id}","starred_url":"https://api.github.com/users/terrestris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrestris/subscriptions","organizations_url":"https://api.github.com/users/terrestris/orgs","repos_url":"https://api.github.com/users/terrestris/repos","events_url":"https://api.github.com/users/terrestris/events{/privacy}","received_events_url":"https://api.github.com/users/terrestris/received_events","type":"Organization","site_admin":false},"repo":{"id":15997656,"name":"shogun2","full_name":"terrestris/shogun2","owner":{"login":"terrestris","id":1510416,"avatar_url":"https://avatars.githubusercontent.com/u/1510416?v=3","gravatar_id":"","url":"https://api.github.com/users/terrestris","html_url":"https://github.com/terrestris","followers_url":"https://api.github.com/users/terrestris/followers","following_url":"https://api.github.com/users/terrestris/following{/other_user}","gists_url":"https://api.github.com/users/terrestris/gists{/gist_id}","starred_url":"https://api.github.com/users/terrestris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrestris/subscriptions","organizations_url":"https://api.github.com/users/terrestris/orgs","repos_url":"https://api.github.com/users/terrestris/repos","events_url":"https://api.github.com/users/terrestris/events{/privacy}","received_events_url":"https://api.github.com/users/terrestris/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/terrestris/shogun2","description":"SHOGun2 is a Java based WebGIS framework.","fork":false,"url":"https://api.github.com/repos/terrestris/shogun2","forks_url":"https://api.github.com/repos/terrestris/shogun2/forks","keys_url":"https://api.github.com/repos/terrestris/shogun2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/terrestris/shogun2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/terrestris/shogun2/teams","hooks_url":"https://api.github.com/repos/terrestris/shogun2/hooks","issue_events_url":"https://api.github.com/repos/terrestris/shogun2/issues/events{/number}","events_url":"https://api.github.com/repos/terrestris/shogun2/events","assignees_url":"https://api.github.com/repos/terrestris/shogun2/assignees{/user}","branches_url":"https://api.github.com/repos/terrestris/shogun2/branches{/branch}","tags_url":"https://api.github.com/repos/terrestris/shogun2/tags","blobs_url":"https://api.github.com/repos/terrestris/shogun2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/terrestris/shogun2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/terrestris/shogun2/git/refs{/sha}","trees_url":"https://api.github.com/repos/terrestris/shogun2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/terrestris/shogun2/statuses/{sha}","languages_url":"https://api.github.com/repos/terrestris/shogun2/languages","stargazers_url":"https://api.github.com/repos/terrestris/shogun2/stargazers","contributors_url":"https://api.github.com/repos/terrestris/shogun2/contributors","subscribers_url":"https://api.github.com/repos/terrestris/shogun2/subscribers","subscription_url":"https://api.github.com/repos/terrestris/shogun2/subscription","commits_url":"https://api.github.com/repos/terrestris/shogun2/commits{/sha}","git_commits_url":"https://api.github.com/repos/terrestris/shogun2/git/commits{/sha}","comments_url":"https://api.github.com/repos/terrestris/shogun2/comments{/number}","issue_comment_url":"https://api.github.com/repos/terrestris/shogun2/issues/comments{/number}","contents_url":"https://api.github.com/repos/terrestris/shogun2/contents/{+path}","compare_url":"https://api.github.com/repos/terrestris/shogun2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/terrestris/shogun2/merges","archive_url":"https://api.github.com/repos/terrestris/shogun2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/terrestris/shogun2/downloads","issues_url":"https://api.github.com/repos/terrestris/shogun2/issues{/number}","pulls_url":"https://api.github.com/repos/terrestris/shogun2/pulls{/number}","milestones_url":"https://api.github.com/repos/terrestris/shogun2/milestones{/number}","notifications_url":"https://api.github.com/repos/terrestris/shogun2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/terrestris/shogun2/labels{/name}","releases_url":"https://api.github.com/repos/terrestris/shogun2/releases{/id}","created_at":"2014-01-17T11:10:10Z","updated_at":"2015-12-01T10:24:10Z","pushed_at":"2015-12-23T10:19:50Z","git_url":"git://github.com/terrestris/shogun2.git","ssh_url":"git@github.com:terrestris/shogun2.git","clone_url":"https://github.com/terrestris/shogun2.git","svn_url":"https://github.com/terrestris/shogun2","homepage":null,"size":711,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":4,"forks":8,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/terrestris/shogun2/pulls/97"},"html":{"href":"https://github.com/terrestris/shogun2/pull/97"},"issue":{"href":"https://api.github.com/repos/terrestris/shogun2/issues/97"},"comments":{"href":"https://api.github.com/repos/terrestris/shogun2/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/terrestris/shogun2/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/terrestris/shogun2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/terrestris/shogun2/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/terrestris/shogun2/statuses/991ac79f9e339fd8b8a565982d80ed235765c177"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"buehner","id":3939332,"avatar_url":"https://avatars.githubusercontent.com/u/3939332?v=3","gravatar_id":"","url":"https://api.github.com/users/buehner","html_url":"https://github.com/buehner","followers_url":"https://api.github.com/users/buehner/followers","following_url":"https://api.github.com/users/buehner/following{/other_user}","gists_url":"https://api.github.com/users/buehner/gists{/gist_id}","starred_url":"https://api.github.com/users/buehner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buehner/subscriptions","organizations_url":"https://api.github.com/users/buehner/orgs","repos_url":"https://api.github.com/users/buehner/repos","events_url":"https://api.github.com/users/buehner/events{/privacy}","received_events_url":"https://api.github.com/users/buehner/received_events","type":"User","site_admin":false},"comments":3,"review_comments":22,"commits":18,"additions":988,"deletions":25,"changed_files":16}}