Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String username = jTextField1.getText();
- String password = new String(jPasswordField1.getPassword());
- //place username and password into a json object to be sent to server
- JSONObject data = new JSONObject();
- data.put("user_ID", username);
- data.put("pwd", password);
- //api endpoint for login check
- String uri = "https://identiphoto.azurewebsites.net/api/AuthenticatePhotographer";
- try {
- URL url = new URL(uri);
- } catch (MalformedURLException ex) {
- Logger.getLogger(Login.class.getName()).log(Level.SEVERE, null, ex);
- }
- //TODO: send the JSON object to url...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement