--- osTicket-v1.8.0.1/include/class.client.php 2013-12-16 20.000000000 -0200+++ osTicket-v1.8.0.1/include/class.client.php 2014-02-21 23.000000000 -0300@@ -191,7 +191,12 @@ //At this point we know the ticket ID is valid. //TODO: 1) Check how old the ticket is...3 months max?? 2) Must be the latest 5 tickets?? //Check the email given.-+ # Ticket closed a more than 10 days+ $now = new DateTime();+ $closeDate = new DateTime($ticket->getCloseDate());+ if($ticket->isClosed() && $now->diff($closeDate)->days > 10){+ $errors = 'Ticket closed a more than 10 days';+ }else{ # Require auth token for automatic logins (GET METHOD). if (!strcasecmp($ticket->getEmail(), $email) && (!$auto_login || $auth === $ticket->getAuthToken())) { @@ -217,6 +222,7 @@ return $user; }+ } } //If we get to this point we know the login failed.