Creates Basic Fnet Profile On Account Creation.
This commit is contained in:
parent
a41a8435d3
commit
ac8996490b
@ -116,9 +116,10 @@ public class delegationServices {
|
||||
|
||||
System.out.println("Delegation Has Started");
|
||||
if(requesttype == 0 || requesttype == 1 || requesttype == 2 || requesttype == 3 || requesttype == 4 || requesttype == 5 || requesttype == 6 || requesttype ==7 || requesttype == 8 || requesttype ==9 || requesttype ==10 || requesttype ==11 || requesttype ==12 || requesttype == 20 || requesttype == 21 ) {
|
||||
if (requesttype == 7 || requesttype == 12 || requesttype == 4 || requesttype == 5 || requesttype == 6 || requesttype == 19 ) {
|
||||
if (requesttype == 7 || requesttype == 12 || requesttype == 4 || requesttype == 5 || requesttype == 6 || requesttype == 19 || requesttype == 12) {
|
||||
System.out.println("An Excluded Request (7MAL, 12S, 4C, 5C, 6C) Has Been Detected, Ignoring");
|
||||
//Thinking of moving all purge timer call to here to centralize deletion decision.
|
||||
System.out.println(requesttype);
|
||||
}
|
||||
if (requesttype == 0) {
|
||||
int CTOKEN = (int) Lrequest.get("Token");
|
||||
@ -177,6 +178,7 @@ public class delegationServices {
|
||||
dCollection.updateOne(searchQuery, updateQuery6);
|
||||
dCollection.updateOne(searchQuery, updateQuery7);
|
||||
delegationTimer.DeleteTargetRequest(ClientID);
|
||||
System.out.println("Finished Sync Read Op");
|
||||
} else {
|
||||
System.out.println("Sync Failure");
|
||||
BasicDBObject searchQuery = new BasicDBObject();
|
||||
@ -226,7 +228,7 @@ public class delegationServices {
|
||||
}
|
||||
}
|
||||
|
||||
//sync read request
|
||||
//sync write request
|
||||
if (requesttype == 1) {
|
||||
System.out.println("Sync Request (Write)");
|
||||
int CTOKEN = (int) Lrequest.get("Token");
|
||||
@ -712,6 +714,7 @@ public class delegationServices {
|
||||
System.out.println("Token Free (Main)");
|
||||
System.out.println("Creating.");
|
||||
Document createForm = new Document();
|
||||
Document FnetInit = new Document();
|
||||
createForm.append("User", User);
|
||||
createForm.append("Password", Password);
|
||||
createForm.append("Status", true);
|
||||
@ -725,6 +728,12 @@ public class delegationServices {
|
||||
createForm.append("Control", 1);
|
||||
createForm.append("Upgrade", 0);
|
||||
accountS.insertOne(createForm);
|
||||
FnetInit.append("User", User);
|
||||
FnetInit.append("Status", true);
|
||||
FnetInit.append("Freinds", " ");
|
||||
FnetInit.append("Token", tokenSTGEN);
|
||||
FnetInit.append("Control", 1);
|
||||
FNETDOC.insertOne(FnetInit);
|
||||
BasicDBObject searchQuery = new BasicDBObject();
|
||||
searchQuery.append("clientid", ClientID);
|
||||
com.jamesquinley.Asecure.emailVerify.Onboarding(Email);
|
||||
|
@ -15,6 +15,6 @@ public class init
|
||||
System.out.println( "We're starting the login delegation server, please wait one moment while we check a few things.");
|
||||
com.jamesquinley.DelegationServices.delegationTimer.trigger();
|
||||
System.out.println("We've started everything, requests are now being served");
|
||||
|
||||
com.jamesquinley.testing.splitFNet.splitNet();
|
||||
}
|
||||
}
|
||||
|
15
src/main/java/com/jamesquinley/testing/splitFNet.java
Normal file
15
src/main/java/com/jamesquinley/testing/splitFNet.java
Normal file
@ -0,0 +1,15 @@
|
||||
package com.jamesquinley.testing;
|
||||
|
||||
public class splitFNet {
|
||||
public static void splitNet ()
|
||||
{
|
||||
String s1 = "['This', 'Is', 'Split', 'Get', 'It?']";
|
||||
|
||||
String[] array = s1.split(",");
|
||||
for(int i=0;i<array.length;i++)
|
||||
{
|
||||
// System.out.println(array[i]);
|
||||
//testing for larger fNetLists
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user