Skip to content
Snippets Groups Projects
Commit a1765760 authored by Nicolas Dubois's avatar Nicolas Dubois
Browse files

Tequila - Replace "user" by "email" to allow epfl account to postulate

parent dba87e70
No related branches found
No related tags found
No related merge requests found
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
require_once("tequila/tequila.php"); require_once("tequila/tequila.php");
$oClient = new TequilaClient(); $oClient = new TequilaClient();
$oClient->SetApplicationName('Formulaire apprentissage'); $oClient->SetApplicationName('Formulaire apprentissage');
$oClient->SetWantedAttributes(array('uniqueid','firstname','name')); $oClient->SetWantedAttributes(array('uniqueid','firstname','name', 'email'));
$oClient->SetWishedAttributes(array('user')); // $oClient->SetWishedAttributes(array('user'));
$oClient->SetAllowsFilter('categorie=epfl-guests'); $oClient->SetAllowsFilter('categorie=epfl-guests');
$oClient->Authenticate(); $oClient->Authenticate();
$user = $oClient->getValue('user'); $user = $oClient->getValue('email');
$firstname = $oClient->getValue('firstname'); $firstname = $oClient->getValue('firstname');
$name = $oClient->getValue('name'); $name = $oClient->getValue('name');
$guest_sciper = $oClient->getValue('uniqueid'); $guest_sciper = $oClient->getValue('uniqueid');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment