diff --git a/canapEPFL/form.php b/canapEPFL/form.php index 810ac0b1f199a38e70cdb49324b199aba332d43f..b4e6d690ac0882eb8cf6e36bf01d4caeb7321d91 100644 --- a/canapEPFL/form.php +++ b/canapEPFL/form.php @@ -2,11 +2,11 @@ require_once("tequila/tequila.php"); $oClient = new TequilaClient(); $oClient->SetApplicationName('Formulaire apprentissage'); - $oClient->SetWantedAttributes(array('uniqueid','firstname','name')); - $oClient->SetWishedAttributes(array('user')); + $oClient->SetWantedAttributes(array('uniqueid','firstname','name', 'email')); + // $oClient->SetWishedAttributes(array('user')); $oClient->SetAllowsFilter('categorie=epfl-guests'); $oClient->Authenticate(); - $user = $oClient->getValue('user'); + $user = $oClient->getValue('email'); $firstname = $oClient->getValue('firstname'); $name = $oClient->getValue('name'); $guest_sciper = $oClient->getValue('uniqueid');