{"action":"created","issue":{"url":"https://api.github.com/repos/JsenPua/McDonald-Restaurant/issues/12","repository_url":"https://api.github.com/repos/JsenPua/McDonald-Restaurant","labels_url":"https://api.github.com/repos/JsenPua/McDonald-Restaurant/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/JsenPua/McDonald-Restaurant/issues/12/comments","events_url":"https://api.github.com/repos/JsenPua/McDonald-Restaurant/issues/12/events","html_url":"https://github.com/JsenPua/McDonald-Restaurant/issues/12","id":194774062,"number":12,"title":"Staff can login to system using ID and password","user":{"login":"PhangCW","id":23474116,"avatar_url":"https://avatars.githubusercontent.com/u/23474116?v=3","gravatar_id":"","url":"https://api.github.com/users/PhangCW","html_url":"https://github.com/PhangCW","followers_url":"https://api.github.com/users/PhangCW/followers","following_url":"https://api.github.com/users/PhangCW/following{/other_user}","gists_url":"https://api.github.com/users/PhangCW/gists{/gist_id}","starred_url":"https://api.github.com/users/PhangCW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhangCW/subscriptions","organizations_url":"https://api.github.com/users/PhangCW/orgs","repos_url":"https://api.github.com/users/PhangCW/repos","events_url":"https://api.github.com/users/PhangCW/events{/privacy}","received_events_url":"https://api.github.com/users/PhangCW/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"PhangCW","id":23474116,"avatar_url":"https://avatars.githubusercontent.com/u/23474116?v=3","gravatar_id":"","url":"https://api.github.com/users/PhangCW","html_url":"https://github.com/PhangCW","followers_url":"https://api.github.com/users/PhangCW/followers","following_url":"https://api.github.com/users/PhangCW/following{/other_user}","gists_url":"https://api.github.com/users/PhangCW/gists{/gist_id}","starred_url":"https://api.github.com/users/PhangCW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhangCW/subscriptions","organizations_url":"https://api.github.com/users/PhangCW/orgs","repos_url":"https://api.github.com/users/PhangCW/repos","events_url":"https://api.github.com/users/PhangCW/events{/privacy}","received_events_url":"https://api.github.com/users/PhangCW/received_events","type":"User","site_admin":false},"assignees":[{"login":"PhangCW","id":23474116,"avatar_url":"https://avatars.githubusercontent.com/u/23474116?v=3","gravatar_id":"","url":"https://api.github.com/users/PhangCW","html_url":"https://github.com/PhangCW","followers_url":"https://api.github.com/users/PhangCW/followers","following_url":"https://api.github.com/users/PhangCW/following{/other_user}","gists_url":"https://api.github.com/users/PhangCW/gists{/gist_id}","starred_url":"https://api.github.com/users/PhangCW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhangCW/subscriptions","organizations_url":"https://api.github.com/users/PhangCW/orgs","repos_url":"https://api.github.com/users/PhangCW/repos","events_url":"https://api.github.com/users/PhangCW/events{/privacy}","received_events_url":"https://api.github.com/users/PhangCW/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-12-10T15:29:53Z","updated_at":"2016-12-22T05:25:47Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/JsenPua/McDonald-Restaurant/issues/comments/268721728","html_url":"https://github.com/JsenPua/McDonald-Restaurant/issues/12#issuecomment-268721728","issue_url":"https://api.github.com/repos/JsenPua/McDonald-Restaurant/issues/12","id":268721728,"user":{"login":"PhangCW","id":23474116,"avatar_url":"https://avatars.githubusercontent.com/u/23474116?v=3","gravatar_id":"","url":"https://api.github.com/users/PhangCW","html_url":"https://github.com/PhangCW","followers_url":"https://api.github.com/users/PhangCW/followers","following_url":"https://api.github.com/users/PhangCW/following{/other_user}","gists_url":"https://api.github.com/users/PhangCW/gists{/gist_id}","starred_url":"https://api.github.com/users/PhangCW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhangCW/subscriptions","organizations_url":"https://api.github.com/users/PhangCW/orgs","repos_url":"https://api.github.com/users/PhangCW/repos","events_url":"https://api.github.com/users/PhangCW/events{/privacy}","received_events_url":"https://api.github.com/users/PhangCW/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T05:25:47Z","updated_at":"2016-12-22T05:25:47Z","body":"` private class SignInListener implements ActionListener {\r\n\r\n        public void actionPerformed(ActionEvent e) {\r\n            String id = jtfId.getText();\r\n            Staff stf = stfControl.selectRecord(id);\r\n\r\n            if (stf != null && jpfPassword.getText().equals(stf.getPassword())) {\r\n                JOptionPane.showMessageDialog(null, \"WELCOME TO McDonald's!!\");\r\n                dispose();\r\n\r\n                Staff staff = new Staff(jtfId.getText());\r\n                \r\n                 Main frame = new Main(staff);\r\n                \r\n                 \r\n                count =0;\r\n               \r\n\r\n            } else {\r\n                JOptionPane.showMessageDialog(null, \"Invalid user ID or password\", \"STAFF NOT FOUND\", JOptionPane.ERROR_MESSAGE);\r\n                jpfPassword.setText(\"\");\r\n                warning();\r\n            }\r\n        }\r\n    }\r\n\r\n    public void warning() {\r\n        \r\n        count++;\r\n        if (count == 3) {\r\n            JOptionPane.showMessageDialog(null, \"You're not an authorised user\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n            System.exit(0);\r\n        }\r\n    }`"}}
{"actor":{"display_login":"PhangCW"}}