Server Now Can Perform Basic login structure with Launcher, working on launcher checkRF
This commit is contained in:
parent
a5e5e19368
commit
be0508735b
@ -51,17 +51,17 @@ public class delegationServices {
|
|||||||
if (requesttype == 7) {
|
if (requesttype == 7) {
|
||||||
System.out.println("An Excluded Request (7MAL) Has Been Detected, Ignoring");
|
System.out.println("An Excluded Request (7MAL) Has Been Detected, Ignoring");
|
||||||
}
|
}
|
||||||
String username = (String) Lrequest.get("User");
|
|
||||||
String password = (String) Lrequest.get("Password");
|
|
||||||
try {
|
try {
|
||||||
ClientID = (int) Lrequest.get("clientid");
|
ClientID = (int) Lrequest.get("clientid");
|
||||||
} catch (Exception exrp) {
|
} catch (Exception exrp) {
|
||||||
System.out.println("Failed To Get Client ID");
|
System.out.println("Failed To Get Client ID");
|
||||||
}
|
}
|
||||||
int CTOKEN = (int) Lrequest.get("Token");
|
|
||||||
|
|
||||||
|
|
||||||
if (requesttype == 0) {
|
if (requesttype == 0) {
|
||||||
|
int CTOKEN = (int) Lrequest.get("Token");
|
||||||
System.out.println("Sync Request (Read)");
|
System.out.println("Sync Request (Read)");
|
||||||
Document accountServer;
|
Document accountServer;
|
||||||
String Password;
|
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.
|
//TODO This has issues, and won't get past line 171. Working on a fix for that.
|
||||||
if (requesttype == 1) {
|
if (requesttype == 1) {
|
||||||
System.out.println("Sync Request (Write)");
|
System.out.println("Sync Request (Write)");
|
||||||
|
int CTOKEN = (int) Lrequest.get("Token");
|
||||||
Document accountServer;
|
Document accountServer;
|
||||||
String Password;
|
String Password;
|
||||||
int Token;
|
int Token;
|
||||||
@ -271,6 +272,8 @@ public class delegationServices {
|
|||||||
}
|
}
|
||||||
if (requesttype == 2) {
|
if (requesttype == 2) {
|
||||||
System.out.println("Login Request (USR&PASS)");
|
System.out.println("Login Request (USR&PASS)");
|
||||||
|
String username = (String) Lrequest.get("User");
|
||||||
|
String password = (String) Lrequest.get("Password");
|
||||||
Document accountServer;
|
Document accountServer;
|
||||||
String Password;
|
String Password;
|
||||||
int Token;
|
int Token;
|
||||||
@ -372,6 +375,7 @@ public class delegationServices {
|
|||||||
}
|
}
|
||||||
if (requesttype == 3) {
|
if (requesttype == 3) {
|
||||||
System.out.println("Login Request (TKN)");
|
System.out.println("Login Request (TKN)");
|
||||||
|
int CTOKEN = (int) Lrequest.get("Token");
|
||||||
// Document TResolve = dCollection.find(eq("type", 3)).first();
|
// Document TResolve = dCollection.find(eq("type", 3)).first();
|
||||||
Document accountServer;
|
Document accountServer;
|
||||||
int TKN;
|
int TKN;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user