Skip to content

Commit

Permalink
Merge pull request #174 from AP2020Fall/elahe
Browse files Browse the repository at this point in the history
Elahe
  • Loading branch information
dorrin-sot committed Feb 6, 2021
2 parents 994f98b + 0d59233 commit 4e5eec4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/com/Resources/JSONs/AccountRelated/Admin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"firstName":"ed","lastName":"ed","username":"ed","password":"ed","userID":"464565","email":"[email protected]","phoneNum":"0912334457","pfpUrl":"https://i.imgur.com/IIyNCG4.png"}
1 change: 0 additions & 1 deletion src/com/Resources/JSONs/IDGenerator.json
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
["944106","565519"]
2 changes: 1 addition & 1 deletion src/com/plato/Controller/Menus/RegisterFormController.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public void signUp (ActionEvent actionEvent) {
// (Class accType, String pfp, String firstName, String lastName, String username, String password, String email, String phoneNum, double money)
try {
dataOutputStream.writeUTF(
"register_" + (Admin.adminHasBeenCreated() ? Gamer.class : Admin.class).getSimpleName() + "_" +
"register" + (Admin.adminHasBeenCreated() ? Gamer.class : Admin.class).getSimpleName() + "_" +
pfp.getImage().getUrl() + "_" +
firstName.getText() + "_" +
lastName.getText() + "_" +
Expand Down
1 change: 1 addition & 0 deletions src/com/plato/Controller/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public void run () {
String[] receivedInfo = received.split("_");
System.out.println("receivedInfo = " + Arrays.toString(receivedInfo));
//System.out.println(token);
System.out.println(receivedInfo);
switch (receivedInfo[0]) {
case "getAllAccounts":
dataOutputStream.writeUTF(MainController.getInstance().getGson().toJson(Account.getAccounts()));
Expand Down

0 comments on commit 4e5eec4

Please sign in to comment.