SAAS-155: Add possibility to show additional information on

login page (for demo site)

- username and password are auto filled on demo site
- added informative msg on demo site about username and password
This commit is contained in:
James 2012-01-17 14:47:26 -05:00
parent 63b2fa94de
commit 3a8ba36e0d
4 changed files with 22 additions and 6 deletions

View file

@ -10,6 +10,8 @@ class LoginController extends Zend_Controller_Action
public function indexAction()
{
global $CC_CONFIG;
if(Zend_Auth::getInstance()->hasIdentity())
{
$this->_redirect('Nowplaying');
@ -80,11 +82,14 @@ class LoginController extends Zend_Controller_Action
}
}
$this->view->message = $message;
$this->view->error = $error;
$this->view->form = $form;
$this->view->airtimeVersion = Application_Model_Preference::GetAirtimeVersion();
$this->view->airtimeCopyright = AIRTIME_COPYRIGHT_DATE;
$this->view->message = $message;
$this->view->error = $error;
$this->view->form = $form;
$this->view->airtimeVersion = Application_Model_Preference::GetAirtimeVersion();
$this->view->airtimeCopyright = AIRTIME_COPYRIGHT_DATE;
if(isset($CC_CONFIG['demo'])){
$this->view->demo = $CC_CONFIG['demo'];
}
}
public function logoutAction()