From c705a5615af085428b5ea95d798b8ac857d55ac8 Mon Sep 17 00:00:00 2001 From: James Quinley Date: Wed, 29 Jun 2022 22:45:40 -0700 Subject: [PATCH] Removes the ability for the sync write request to change username and fName (intro on home screen). This resolves the issue of the client sending back null and preventing users from logging in. --- .../DelegationServices/delegationServices.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/main/java/com/jamesquinley/DelegationServices/delegationServices.java b/src/main/java/com/jamesquinley/DelegationServices/delegationServices.java index 4c974c5..9f752a6 100644 --- a/src/main/java/com/jamesquinley/DelegationServices/delegationServices.java +++ b/src/main/java/com/jamesquinley/DelegationServices/delegationServices.java @@ -374,26 +374,18 @@ public class delegationServices { SqS.append("clientid", ClientID); BasicDBObject updateQuery = new BasicDBObject(); - BasicDBObject updateQuery2 = new BasicDBObject(); BasicDBObject updateQuery3 = new BasicDBObject(); - BasicDBObject updateQuery4 = new BasicDBObject(); BasicDBObject updateQuery6 = new BasicDBObject(); System.out.println("Made Objects"); updateQuery.append("$set", new BasicDBObject().append("type", 12)); - updateQuery2.append("$set", - new BasicDBObject().append("FName", Fname)); updateQuery3.append("$set", new BasicDBObject().append("Path", Path)); - updateQuery4.append("$set", - new BasicDBObject().append("User", UserName)); updateQuery6.append("$set", new BasicDBObject().append("status", true)); dCollection.updateOne(SqS, updateQuery); dCollection.updateOne(SqS, updateQuery6); - accountS.updateOne(searchQuery, updateQuery2); accountS.updateOne(searchQuery, updateQuery3); - accountS.updateOne(searchQuery, updateQuery4); System.out.println("Updated Account"); //delegationTimer.trigger(); delegationTimer.DeleteTargetRequest(ClientID);