{"action":"opened","issue":{"url":"https://api.github.com/repos/evo-doc/back-end/issues/10","repository_url":"https://api.github.com/repos/evo-doc/back-end","labels_url":"https://api.github.com/repos/evo-doc/back-end/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/evo-doc/back-end/issues/10/comments","events_url":"https://api.github.com/repos/evo-doc/back-end/issues/10/events","html_url":"https://github.com/evo-doc/back-end/issues/10","id":319063167,"number":10,"title":"Useless User ID in requests","user":{"login":"inviqus","id":8467361,"avatar_url":"https://avatars3.githubusercontent.com/u/8467361?v=4","gravatar_id":"","url":"https://api.github.com/users/inviqus","html_url":"https://github.com/inviqus","followers_url":"https://api.github.com/users/inviqus/followers","following_url":"https://api.github.com/users/inviqus/following{/other_user}","gists_url":"https://api.github.com/users/inviqus/gists{/gist_id}","starred_url":"https://api.github.com/users/inviqus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inviqus/subscriptions","organizations_url":"https://api.github.com/users/inviqus/orgs","repos_url":"https://api.github.com/users/inviqus/repos","events_url":"https://api.github.com/users/inviqus/events{/privacy}","received_events_url":"https://api.github.com/users/inviqus/received_events","type":"User","site_admin":false},"labels":[{"id":916969226,"url":"https://api.github.com/repos/evo-doc/back-end/labels/question","name":"question","color":"5319e7","default":true}],"state":"open","locked":false,"assignee":{"login":"inviqus","id":8467361,"avatar_url":"https://avatars3.githubusercontent.com/u/8467361?v=4","gravatar_id":"","url":"https://api.github.com/users/inviqus","html_url":"https://github.com/inviqus","followers_url":"https://api.github.com/users/inviqus/followers","following_url":"https://api.github.com/users/inviqus/following{/other_user}","gists_url":"https://api.github.com/users/inviqus/gists{/gist_id}","starred_url":"https://api.github.com/users/inviqus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inviqus/subscriptions","organizations_url":"https://api.github.com/users/inviqus/orgs","repos_url":"https://api.github.com/users/inviqus/repos","events_url":"https://api.github.com/users/inviqus/events{/privacy}","received_events_url":"https://api.github.com/users/inviqus/received_events","type":"User","site_admin":false},"assignees":[{"login":"inviqus","id":8467361,"avatar_url":"https://avatars3.githubusercontent.com/u/8467361?v=4","gravatar_id":"","url":"https://api.github.com/users/inviqus","html_url":"https://github.com/inviqus","followers_url":"https://api.github.com/users/inviqus/followers","following_url":"https://api.github.com/users/inviqus/following{/other_user}","gists_url":"https://api.github.com/users/inviqus/gists{/gist_id}","starred_url":"https://api.github.com/users/inviqus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inviqus/subscriptions","organizations_url":"https://api.github.com/users/inviqus/orgs","repos_url":"https://api.github.com/users/inviqus/repos","events_url":"https://api.github.com/users/inviqus/events{/privacy}","received_events_url":"https://api.github.com/users/inviqus/received_events","type":"User","site_admin":false},{"login":"TomStary","id":18069096,"avatar_url":"https://avatars3.githubusercontent.com/u/18069096?v=4","gravatar_id":"","url":"https://api.github.com/users/TomStary","html_url":"https://github.com/TomStary","followers_url":"https://api.github.com/users/TomStary/followers","following_url":"https://api.github.com/users/TomStary/following{/other_user}","gists_url":"https://api.github.com/users/TomStary/gists{/gist_id}","starred_url":"https://api.github.com/users/TomStary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomStary/subscriptions","organizations_url":"https://api.github.com/users/TomStary/orgs","repos_url":"https://api.github.com/users/TomStary/repos","events_url":"https://api.github.com/users/TomStary/events{/privacy}","received_events_url":"https://api.github.com/users/TomStary/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-04-30T22:55:44Z","updated_at":"2018-04-30T22:55:44Z","closed_at":null,"author_association":"COLLABORATOR","body":"Proc u pozadavku typu `/user/activation` se vyzaduje uvadeni uplne zbytecneho `user_id` spolu s tokenem? Pridava to praci pro kontrolu konzistence dat, kontrolu spravnosti id + token apod.\r\n\r\nStaci prece posilat token a z toho se na serveru 100% presnosti vytahne ID necim typu:\r\n```javascript\r\nlet id = +token.substr(0, 10);\r\n```\r\n\r\nUseless ID je v \r\n```\r\n/user/activation\r\n/user/authorised\r\nDELETE /user\r\natd.\r\n```\r\n\r\nNavic je to zavadejici, protoze pozadavek \r\n`GET /user?token={token}&user_id={user_id}` uz oznacuje jako `user_id` ne aktualniho uzivatele, ale toho, jehoz data chceme ziskat."}}
{"actor":{"display_login":"inviqus"}}