Slight Tweak In Emails
This commit is contained in:
@ -71,6 +71,8 @@ public class delegationServices {
|
||||
static MongoCollection<Document> FNETDOC = accountDatabase.getCollection("FNet");
|
||||
static int RequestR;
|
||||
//still need to config
|
||||
public static String lastNet = null;
|
||||
public static String Macid = null;
|
||||
public static void delegationProcesser() {
|
||||
int ClientID = 0;
|
||||
Document Lrequest = dCollection.find(eq("status", false)).first();
|
||||
@ -84,8 +86,11 @@ public class delegationServices {
|
||||
try {
|
||||
try {
|
||||
ClientID = (int) Lrequest.get("clientid");
|
||||
Macid = (String) Lrequest.get("net");
|
||||
System.out.println(Macid);
|
||||
|
||||
} catch (Exception exrp) {
|
||||
System.out.println("Failed To Get Client ID");
|
||||
System.out.println("Failed To Get Client ID & MacAdr");
|
||||
delegationTimer.DeleteTargetRequest(ClientID);
|
||||
}
|
||||
|
||||
@ -348,7 +353,9 @@ public class delegationServices {
|
||||
Path = (String) accountServer.get("Path");
|
||||
Email = (String) accountServer.get("Email");
|
||||
UserName = (String) accountServer.get("User");
|
||||
com.jamesquinley.Asecure.emailVerify.SendEmailThroughGmail(Email, UserName);
|
||||
lastNet = (String) accountServer.get("lastNet");
|
||||
localNet.macRead(Macid,lastNet,Email,UserName,Token);
|
||||
// com.jamesquinley.Asecure.emailVerify.SendEmailThroughGmail(Email, UserName);
|
||||
|
||||
BasicDBObject searchQuery = new BasicDBObject();
|
||||
searchQuery.append("clientid", ClientID);
|
||||
@ -456,9 +463,10 @@ public class delegationServices {
|
||||
Fname = (String) accountServer.get("FName");
|
||||
Path = (String) accountServer.get("Path");
|
||||
Email = (String) accountServer.get("Email");
|
||||
|
||||
UserName = (String) accountServer.get("User");
|
||||
com.jamesquinley.Asecure.emailVerify.SendEmailThroughGmail(Email, UserName);
|
||||
lastNet = (String) accountServer.get("lastNet");
|
||||
localNet.macRead(Macid,lastNet,Email,UserName,TKN);
|
||||
// com.jamesquinley.Asecure.emailVerify.SendEmailThroughGmail(Email, UserName);
|
||||
BasicDBObject searchQuery = new BasicDBObject();
|
||||
searchQuery.append("clientid", ClientID);
|
||||
|
||||
@ -727,6 +735,7 @@ public class delegationServices {
|
||||
createForm.append("Token", tokenSTGEN);
|
||||
createForm.append("Control", 1);
|
||||
createForm.append("Upgrade", 0);
|
||||
createForm.append("lastNet", Macid);
|
||||
accountS.insertOne(createForm);
|
||||
FnetInit.append("User", User);
|
||||
FnetInit.append("Status", true);
|
||||
|
||||
Reference in New Issue
Block a user