This commit is contained in:
Michael RICOIS 2013-05-13 14:27:22 +00:00
parent ca6b1383bd
commit d546b2587b

View File

@ -49,12 +49,13 @@ class Scores_AuthAdapter implements Zend_Auth_Adapter_Interface
$identity->acceptationCGU = $InfosLogin->result->acceptationCGU; $identity->acceptationCGU = $InfosLogin->result->acceptationCGU;
$identity->ip = $adressIp; $identity->ip = $adressIp;
$identity->modeEdition = false; $identity->modeEdition = false;
$timeout = (!empty($InfosLogin->result->timeout)) ? $InfosLogin->result->timeout : $this->_timeout; $timeout = (!empty($InfosLogin->result->timeout)) ? $InfosLogin->result->timeout : $this->_timeout;
$identity->timeout = $timeout; $identity->timeout = $timeout;
$identity->time = time() + $timeout; $identity->time = time() + $timeout;
$lang = in_array($InfosLogin->result->lang,array('fr','en')) ? $InfosLogin->result->lang : 'fr'; $lang = in_array($InfosLogin->result->lang,array('fr','en')) ? $InfosLogin->result->lang : 'fr';
$identity->lang = $lang; $identity->lang = $lang;
/* /*