Another small patch.

This commit is contained in:
James Quinley 2022-12-18 22:02:13 -08:00
parent b27f12e949
commit 7be6c81bd5
2 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,6 @@
package com.jamesquinley.DelegationServices; package com.jamesquinley.DelegationServices;
import com.jamesquinley.Asecure.electronicMailHandler;
import com.jamesquinley.Asecure.secureCalls; import com.jamesquinley.Asecure.secureCalls;
import com.mongodb.BasicDBObject; import com.mongodb.BasicDBObject;
@ -14,7 +15,12 @@ public class localNet {
} else } else
{ {
System.out.println("Hey this user Logged In From A new Location, dispatching email!"); System.out.println("Hey this user Logged In From A new Location, dispatching email!");
final Runnable runnable = new Runnable() {
public void run() {
secureCalls.locationBasedEmail(email,UName,NewMac, OldMac); secureCalls.locationBasedEmail(email,UName,NewMac, OldMac);
}
};
runnable.run();
System.out.println("Switching Trusted Net To New Local"); System.out.println("Switching Trusted Net To New Local");
BasicDBObject searchQuery = new BasicDBObject(); BasicDBObject searchQuery = new BasicDBObject();
searchQuery.append("Token", Token); searchQuery.append("Token", Token);

View File

@ -6,13 +6,14 @@ Hey there! This is the source code for AOTSK-Delegation Server, self explanatory
Also this is multi line so I can justify using this type of comment. Also this is multi line so I can justify using this type of comment.
*/ */
public class Main { public class Main {
public static void main(String[] args) { public static void main(String[] args) throws InterruptedException {
com.jamesquinley.DelegationServices.delegationServices.connectionInit(status.betaServer); com.jamesquinley.DelegationServices.delegationServices.connectionInit(status.betaServer);
com.jamesquinley.DelegationServices.delegationServices.Purge(); com.jamesquinley.DelegationServices.delegationServices.Purge();
System.out.println("We're starting the login delegation server, please wait one moment while we check a few things."); System.out.println("We're starting the login delegation server, please wait one moment while we check a few things.");
System.out.println("We've started everything, requests are now being served"); System.out.println("We've started everything, requests are now being served");
while (true) { while (true) {
isolatedTimer(); isolatedTimer();
Thread.sleep(500);
} }
} }