Redirect to home

This commit is contained in:
Michael RICOIS 2012-06-25 14:00:33 +00:00
parent 656e8a12b2
commit 61ea754b45

View File

@ -21,7 +21,6 @@ class UserController extends Zend_Controller_Action
if ($form->isValid($formData)) {
$login = $form->getValue('login');
$pass = $form->getValue('pass');
$auth = Zend_Auth::getInstance();
$authAdapter = new Scores_AuthAdapter($login, md5($login.'|'.$pass));
$result = $auth->authenticate($authAdapter);
@ -31,7 +30,9 @@ class UserController extends Zend_Controller_Action
foreach ($result->getMessages() as $message) {
$this->view->message.= $message."<br/>";
}
}
} else {
$this->_redirect('/');
}
}
}
$this->_helper->layout()->disableLayout();