Skip to content
Snippets Groups Projects
Commit 281111b1 authored by efalcy's avatar efalcy
Browse files

Cas serveur : pour tests

parent f91ae92e
No related merge requests found
......@@ -44,8 +44,10 @@ class CasServerController extends Zend_Controller_Action {
*/
$username=$this->_request->getParam('username');
$password = $this->_request->getParam('password');
if (!ZendAfi_Auth::getInstance()->authenticateLoginPassword($username, $password))
return $this->view->_('Identifiant ou mot de passe incorrect.');
if ($username && $password)
if (!ZendAfi_Auth::getInstance()->authenticateLoginPassword($username, $password))
echo "identifiant incorrect";
//return $this->view->_('Identifiant ou mot de passe incorrect.');
$user = Class_Users::getIdentity();
$this->_helper->trackEvent('authentification', 'login', $user->getId());
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment