From 5ada5de01eb4af04a85bddaf2c31cedc09c876f2 Mon Sep 17 00:00:00 2001 From: James Quinley Date: Tue, 8 Feb 2022 17:02:54 -0800 Subject: [PATCH] Move deletion to one minute. --- src/main/java/com/jamesquinley/Asecure/emailVerify.java | 2 -- .../com/jamesquinley/DelegationServices/delegationTimer.java | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/jamesquinley/Asecure/emailVerify.java b/src/main/java/com/jamesquinley/Asecure/emailVerify.java index 6908b29..e0ca517 100644 --- a/src/main/java/com/jamesquinley/Asecure/emailVerify.java +++ b/src/main/java/com/jamesquinley/Asecure/emailVerify.java @@ -9,7 +9,6 @@ import java.util.Date; import java.util.Properties; public class emailVerify { - /* This will handle both account creation verify and login verify tasks, it will not verify for token based logins as that form of login is client controlled and no user input is allowed, hacked clients are also locked out of the network @@ -49,7 +48,6 @@ public class emailVerify { System.err.println("Was Not Sent Because Of An Error."); } } - private static class SMTPAuthenticator extends javax.mail.Authenticator { public PasswordAuthentication diff --git a/src/main/java/com/jamesquinley/DelegationServices/delegationTimer.java b/src/main/java/com/jamesquinley/DelegationServices/delegationTimer.java index 25c82ad..4b37c86 100644 --- a/src/main/java/com/jamesquinley/DelegationServices/delegationTimer.java +++ b/src/main/java/com/jamesquinley/DelegationServices/delegationTimer.java @@ -25,11 +25,11 @@ public class delegationTimer { { final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1); final Runnable runnable = new Runnable() { - int countdownStarter = 15; + int countdownStarter = 60; public void run() { countdownStarter--; if (countdownStarter <= 0) { - countdownStarter = 15; + countdownStarter = 60; delegationServices.Clear(); //flushes all requests from the server scheduler.shutdown();