diff --git a/airtime_mvc/application/Bootstrap.php b/airtime_mvc/application/Bootstrap.php index 2a82ca501..0b3bba17f 100644 --- a/airtime_mvc/application/Bootstrap.php +++ b/airtime_mvc/application/Bootstrap.php @@ -119,10 +119,10 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap $csrf_namespace = new Zend_Session_Namespace('csrf_namespace'); // Check if the token exists if (!$csrf_namespace->authtoken) { - // If we don't have a token, regenerate it and set a 2 hour timeout + // If we don't have a token, regenerate it and set a 1 week timeout // Should we log the user out here if the token is expired? $csrf_namespace->authtoken = sha1(uniqid(rand(), 1)); - $csrf_namespace->setExpirationSeconds(2 * 60 * 60); + $csrf_namespace->setExpirationSeconds(168 * 60 * 60); } //Here we are closing the session for writing because otherwise no requests diff --git a/airtime_mvc/application/views/scripts/billing/upgrade.phtml b/airtime_mvc/application/views/scripts/billing/upgrade.phtml index 8174bc7e2..835b50d1f 100644 --- a/airtime_mvc/application/views/scripts/billing/upgrade.phtml +++ b/airtime_mvc/application/views/scripts/billing/upgrade.phtml @@ -28,6 +28,10 @@ function validatePlan() function validateVATNumber() { + if ($(vatFieldId).val() == '') { + return; + } + $.post("/billing/vat-validator", { "vatnumber" : $(vatFieldId).val(), "country" : $("#country").val() }) .success(function(data, textStatus, jqXHR) { if (data["result"]) { @@ -261,6 +265,10 @@ echo($currentProduct["name"]); //echo Application_Model_Preference::GetPlanLevel(); ?>
+Sign up on an annual plan before the end of October to receive a special educational discount. Find out more.
+