Server Now Can Perform Basic login structure with Launcher, working on launcher checkRF

This commit is contained in:
James 2022-02-06 09:06:48 -08:00
parent a5e5e19368
commit be0508735b

View File

@ -51,17 +51,17 @@ public class delegationServices {
if (requesttype == 7) {
System.out.println("An Excluded Request (7MAL) Has Been Detected, Ignoring");
}
String username = (String) Lrequest.get("User");
String password = (String) Lrequest.get("Password");
try {
ClientID = (int) Lrequest.get("clientid");
} catch (Exception exrp) {
System.out.println("Failed To Get Client ID");
}
int CTOKEN = (int) Lrequest.get("Token");
if (requesttype == 0) {
int CTOKEN = (int) Lrequest.get("Token");
System.out.println("Sync Request (Read)");
Document accountServer;
String Password;
@ -165,6 +165,7 @@ public class delegationServices {
//TODO This has issues, and won't get past line 171. Working on a fix for that.
if (requesttype == 1) {
System.out.println("Sync Request (Write)");
int CTOKEN = (int) Lrequest.get("Token");
Document accountServer;
String Password;
int Token;
@ -271,6 +272,8 @@ public class delegationServices {
}
if (requesttype == 2) {
System.out.println("Login Request (USR&PASS)");
String username = (String) Lrequest.get("User");
String password = (String) Lrequest.get("Password");
Document accountServer;
String Password;
int Token;
@ -372,6 +375,7 @@ public class delegationServices {
}
if (requesttype == 3) {
System.out.println("Login Request (TKN)");
int CTOKEN = (int) Lrequest.get("Token");
// Document TResolve = dCollection.find(eq("type", 3)).first();
Document accountServer;
int TKN;