Skip to content

Commit

Permalink
just kidding on the last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dep11007 committed Apr 28, 2015
1 parent a7c1a94 commit 1ca3736
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/InputOutput/UserLogin.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void handle(ActionEvent e) {
String queriedPassword = null;
try {
queriedEmail = _server.getUserFromEmail(enteredEmail).get("email");
queriedPassword = _server.getUserFromEmail(enteredPassword).get("password");
queriedPassword = _server.getUserFromEmail(enteredEmail).get("password");
} catch(Exception e1){
e1.printStackTrace();
System.out.println("ERROR: user and password does not exist");
Expand All @@ -73,7 +73,7 @@ public void handle(ActionEvent e) {
if (enteredEmail.equals(queriedEmail) && enteredPassword.equals(queriedPassword)){
_loggedin = true;
try{//opens new window when login true
Parent root = FXMLLoader.load(getClass().getResource("/interface_xml_files/SetupThermo.fxml"));
Parent root = FXMLLoader.load(getClass().getResource("/interface_xml_files/Thermocontroller.fxml"));
Stage stage = new Stage();
stage.setScene(new Scene(root));
stage.show();
Expand Down
1 change: 0 additions & 1 deletion src/server/server.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public boolean createThermostat(String serialnumber, String name, String ip, Str
}

public Hashtable<String, String> getUserFromEmail(String email) {
dataStorage.printStruct();
return dataStorage.getObjectFromTableAndKey("UserTable", email);
}

Expand Down

0 comments on commit 1ca3736

Please sign in to comment.