diff --git a/airtime_mvc/application/controllers/LoginController.php b/airtime_mvc/application/controllers/LoginController.php index 7498a608b..d05eec225 100644 --- a/airtime_mvc/application/controllers/LoginController.php +++ b/airtime_mvc/application/controllers/LoginController.php @@ -18,6 +18,7 @@ class LoginController extends Zend_Controller_Action //uses separate layout without a navigation. $this->_helper->layout->setLayout('login'); + $error = false; $request = $this->getRequest(); $baseUrl = $request->getBaseUrl(); @@ -73,12 +74,14 @@ class LoginController extends Zend_Controller_Action Application_Model_Subjects::increaseLoginAttempts($username); Application_Model_LoginAttempts::increaseAttempts($_SERVER['REMOTE_ADDR']); $form = new Application_Form_Login(); + $error = true; } } } } $this->view->message = $message; + $this->view->error = $error; $this->view->form = $form; $this->view->airtimeVersion = AIRTIME_VERSION; $this->view->airtimeCopyright = AIRTIME_COPYRIGHT_DATE; diff --git a/airtime_mvc/application/forms/Login.php b/airtime_mvc/application/forms/Login.php index ead777f0d..52323a666 100644 --- a/airtime_mvc/application/forms/Login.php +++ b/airtime_mvc/application/forms/Login.php @@ -43,7 +43,7 @@ class Application_Form_Login extends Zend_Form $this->addElement('submit', 'submit', array( 'ignore' => true, 'label' => 'Login', - 'class' => 'ui-button ui-widget ui-state-default ui-button-text-only' + 'class' => 'ui-button ui-widget ui-state-default ui-button-text-only center' )); } diff --git a/airtime_mvc/application/views/scripts/login/index.phtml b/airtime_mvc/application/views/scripts/login/index.phtml index 090097f25..ea6c24e41 100644 --- a/airtime_mvc/application/views/scripts/login/index.phtml +++ b/airtime_mvc/application/views/scripts/login/index.phtml @@ -1,9 +1,8 @@
message; ?>
+message; ?>
form; ?>