From: Pascal Corpet Date: Sun, 26 Sep 2010 16:22:36 +0000 (+0200) Subject: fixes use of field 'nom' and 'prenom' in groupeX auth X-Git-Tag: xorg/1.0.1~157 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=c8fe767d7c9bbbe335fbd843a23c227de7af8ec2;p=platal.git fixes use of field 'nom' and 'prenom' in groupeX auth --- diff --git a/ChangeLog b/ChangeLog index e4754b2..961212f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,9 @@ From 1.0.0 branch: * AXLetter: - Fix unsubscription -XEL + * Auth: + - Fix GroupeX auth (using french fields) -Car + * Carnet: - Fix inaccessible carnet/panel in case of profile update -FRU - Fix notification email -JAC diff --git a/modules/auth/auth.inc.php b/modules/auth/auth.inc.php index 383745a..1cb1ca4 100644 --- a/modules/auth/auth.inc.php +++ b/modules/auth/auth.inc.php @@ -42,6 +42,8 @@ function gpex_make($chlg, $privkey, $datafields, $charset) $personnal_data['nationalite'] = $personnal_data['nationality1']; $personnal_data['naissance'] = $personnal_data['birthdate']; $personnal_data['deces'] = $personnal_data['deathdate']; + $personnal_data['nom'] = $personnal_data['lastname']; + $personnal_data['prenom'] = $personnal_data['firstname']; $personnal_data['flags'] = $user->profile()->isFemale() ? 'femme' : ''; } else { $personnal_data = array();