54,8 → 54,9 |
'mot_de_passe' => '', |
'nom' => '', |
'prenom' => '', |
'licence_acceptee' => '0', |
'preferences_utilisateur' => '' |
'licence_acceptee' => false, |
'preferences_utilisateur' => '', |
'admin' => false |
); |
|
$login_utilisateur = $this->utilisateurEstIdentifie(); |
77,8 → 78,9 |
'mot_de_passe' => '', |
'nom' => '', |
'prenom' => '', |
'licence_acceptee' => '0', |
'preferences_utilisateur' => '' |
'licence_acceptee' => false, |
'preferences_utilisateur' => '', |
'admin' => false |
); |
|
if ($this->identificationEstDemandee($uid)) { |
105,7 → 107,11 |
} |
|
private function envoyerInfosUtilisateur($utilisateur) { |
|
|
$utilisateur['connecte'] = ($utilisateur['connecte']) ? true : false; |
$utilisateur['licence_acceptee'] = ($utilisateur['licence_acceptee']) ? true : false; |
$utilisateur['admin'] = ($utilisateur['admin']) ? true : false; |
|
$output = json_encode($utilisateur); |
header('content-type: application/json'); |
print $output; |