54,6 → 54,7 |
$this->objet_identification = Config::get('objet_identification'); |
$this->objet_identification->setAuth($nom_utilisateur); |
$pass = $this->objet_identification->password; |
|
$this->creerCookie($nom_utilisateur, $pass, true); |
} |
|
65,11 → 66,7 |
$this->objet_identification->setIdle(0); |
|
// Création d'un cookie pour rendre permanente l'identification de Papyrus |
if (!$pass_deja_crypte) { |
$pass_crypt = md5($pass); |
} else { |
$pass_crypt = $pass; |
} |
$pass_crypt = (!$pass_deja_crypte) ? md5($pass) : $pass; |
$cookie_val = $pass_crypt.$utilisateur; |
setcookie(session_name().'-memo', $cookie_val, 0, '/'); |
} |