Move deletion to one minute.
This commit is contained in:
parent
490be5a35a
commit
5ada5de01e
@ -9,7 +9,6 @@ import java.util.Date;
|
|||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
public class emailVerify {
|
public class emailVerify {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This will handle both account creation verify and login verify tasks, it will not verify for token based logins as
|
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
|
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.");
|
System.err.println("Was Not Sent Because Of An Error.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class SMTPAuthenticator extends
|
private static class SMTPAuthenticator extends
|
||||||
javax.mail.Authenticator {
|
javax.mail.Authenticator {
|
||||||
public PasswordAuthentication
|
public PasswordAuthentication
|
||||||
|
@ -25,11 +25,11 @@ public class delegationTimer {
|
|||||||
{
|
{
|
||||||
final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
|
final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
|
||||||
final Runnable runnable = new Runnable() {
|
final Runnable runnable = new Runnable() {
|
||||||
int countdownStarter = 15;
|
int countdownStarter = 60;
|
||||||
public void run() {
|
public void run() {
|
||||||
countdownStarter--;
|
countdownStarter--;
|
||||||
if (countdownStarter <= 0) {
|
if (countdownStarter <= 0) {
|
||||||
countdownStarter = 15;
|
countdownStarter = 60;
|
||||||
delegationServices.Clear();
|
delegationServices.Clear();
|
||||||
//flushes all requests from the server
|
//flushes all requests from the server
|
||||||
scheduler.shutdown();
|
scheduler.shutdown();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user