{"action":"created","issue":{"url":"https://api.github.com/repos/mzenzie/320MusicLessonPlanner/issues/41","labels_url":"https://api.github.com/repos/mzenzie/320MusicLessonPlanner/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/mzenzie/320MusicLessonPlanner/issues/41/comments","events_url":"https://api.github.com/repos/mzenzie/320MusicLessonPlanner/issues/41/events","html_url":"https://github.com/mzenzie/320MusicLessonPlanner/issues/41","id":64388288,"number":41,"title":"When first visiting page login always fails","user":{"login":"jesshmusic","id":7180584,"avatar_url":"https://avatars.githubusercontent.com/u/7180584?v=3","gravatar_id":"","url":"https://api.github.com/users/jesshmusic","html_url":"https://github.com/jesshmusic","followers_url":"https://api.github.com/users/jesshmusic/followers","following_url":"https://api.github.com/users/jesshmusic/following{/other_user}","gists_url":"https://api.github.com/users/jesshmusic/gists{/gist_id}","starred_url":"https://api.github.com/users/jesshmusic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesshmusic/subscriptions","organizations_url":"https://api.github.com/users/jesshmusic/orgs","repos_url":"https://api.github.com/users/jesshmusic/repos","events_url":"https://api.github.com/users/jesshmusic/events{/privacy}","received_events_url":"https://api.github.com/users/jesshmusic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mzenzie/320MusicLessonPlanner/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"jesshmusic","id":7180584,"avatar_url":"https://avatars.githubusercontent.com/u/7180584?v=3","gravatar_id":"","url":"https://api.github.com/users/jesshmusic","html_url":"https://github.com/jesshmusic","followers_url":"https://api.github.com/users/jesshmusic/followers","following_url":"https://api.github.com/users/jesshmusic/following{/other_user}","gists_url":"https://api.github.com/users/jesshmusic/gists{/gist_id}","starred_url":"https://api.github.com/users/jesshmusic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesshmusic/subscriptions","organizations_url":"https://api.github.com/users/jesshmusic/orgs","repos_url":"https://api.github.com/users/jesshmusic/repos","events_url":"https://api.github.com/users/jesshmusic/events{/privacy}","received_events_url":"https://api.github.com/users/jesshmusic/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mzenzie/320MusicLessonPlanner/milestones/10","html_url":"https://github.com/mzenzie/320MusicLessonPlanner/milestones/Login%20and%20Teacher-specific%20Functionality%20Implemented","labels_url":"https://api.github.com/repos/mzenzie/320MusicLessonPlanner/milestones/10/labels","id":1012368,"number":10,"title":"Login and Teacher-specific Functionality Implemented","description":"Upon first visiting the page, the user will be prompted to log in or register.\r\nThis is the gateway to dividing the database into individual teacher accounts with their own record of students.","creator":{"login":"jesshmusic","id":7180584,"avatar_url":"https://avatars.githubusercontent.com/u/7180584?v=3","gravatar_id":"","url":"https://api.github.com/users/jesshmusic","html_url":"https://github.com/jesshmusic","followers_url":"https://api.github.com/users/jesshmusic/followers","following_url":"https://api.github.com/users/jesshmusic/following{/other_user}","gists_url":"https://api.github.com/users/jesshmusic/gists{/gist_id}","starred_url":"https://api.github.com/users/jesshmusic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesshmusic/subscriptions","organizations_url":"https://api.github.com/users/jesshmusic/orgs","repos_url":"https://api.github.com/users/jesshmusic/repos","events_url":"https://api.github.com/users/jesshmusic/events{/privacy}","received_events_url":"https://api.github.com/users/jesshmusic/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":2,"state":"open","created_at":"2015-03-09T13:27:22Z","updated_at":"2015-03-25T22:38:10Z","due_on":"2015-03-16T04:00:00Z","closed_at":null},"comments":1,"created_at":"2015-03-25T22:38:10Z","updated_at":"2015-03-26T14:28:57Z","closed_at":null,"body":"After trying to login after first visiting the page the login will fail regardless of whether or not it is entered correctly. (Seems to be a UI-Router implementation issue).\r\nTo recreate bug:\r\nType: http://localhost:8000 in the browser and press Enter."},"comment":{"url":"https://api.github.com/repos/mzenzie/320MusicLessonPlanner/issues/comments/86540767","html_url":"https://github.com/mzenzie/320MusicLessonPlanner/issues/41#issuecomment-86540767","issue_url":"https://api.github.com/repos/mzenzie/320MusicLessonPlanner/issues/41","id":86540767,"user":{"login":"nsimsiri","id":3226241,"avatar_url":"https://avatars.githubusercontent.com/u/3226241?v=3","gravatar_id":"","url":"https://api.github.com/users/nsimsiri","html_url":"https://github.com/nsimsiri","followers_url":"https://api.github.com/users/nsimsiri/followers","following_url":"https://api.github.com/users/nsimsiri/following{/other_user}","gists_url":"https://api.github.com/users/nsimsiri/gists{/gist_id}","starred_url":"https://api.github.com/users/nsimsiri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsimsiri/subscriptions","organizations_url":"https://api.github.com/users/nsimsiri/orgs","repos_url":"https://api.github.com/users/nsimsiri/repos","events_url":"https://api.github.com/users/nsimsiri/events{/privacy}","received_events_url":"https://api.github.com/users/nsimsiri/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T14:28:57Z","updated_at":"2015-03-26T14:28:57Z","body":"Must use an the JwtInterceptor. Fixed by uncommenting jwt code in Config.js\r\nJwtInterceptorProvider is an Interceptor - you can google angular inceptor for more details.\r\nWhat this JwtInterceptor does is for every request we make, we are appending to the header the field\r\n\"Authorization: Bearer <token> \"\r\nso that the Server can verify this User and give permission to protected API if neccesary. \r\n* JwtInterceptor is an Interceptor - see: https://docs.angularjs.org/api/ng/service/$http - Interceptor section\r\n* RFC on passing tokens via HTTP: https://tools.ietf.org/html/rfc6750"}}