From: Pascal Corpet Date: Sun, 26 Sep 2010 21:10:23 +0000 (+0200) Subject: fix groupex auth - promo is only the entry year X-Git-Tag: xorg/1.0.1~15^2~6 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=03bda5524bd16c5c160a314d42baefe0b3254c62;p=platal.git fix groupex auth - promo is only the entry year --- diff --git a/modules/auth/auth.inc.php b/modules/auth/auth.inc.php index c4f015b..ef5492e 100644 --- a/modules/auth/auth.inc.php +++ b/modules/auth/auth.inc.php @@ -36,9 +36,11 @@ function gpex_make($chlg, $privkey, $datafields, $charset) if ($user->hasProfile()) { // XXX: Transition table for auth. $personnal_data = $user->profile()->data(); + $personnal_data['full_promo'] = $personnal_data['promo']; + $personnal_data['promo'] = $personnal_data['entry_year']; $personnal_data['matricule'] = $personnal_data['xorg_id']; $personnal_data['matricule_ax'] = $personnal_data['ax_id']; - $personnal_data['promo_sortie'] = $personnal_data['promo'] + 3; // FIXME: Hum, not that good + $personnal_data['promo_sortie'] = $personnal_data['grad_year']; $personnal_data['nationalite'] = $personnal_data['nationality1']; $personnal_data['naissance'] = $personnal_data['birthdate']; $personnal_data['deces'] = $personnal_data['deathdate'];