fixes use of field 'nom' and 'prenom' in groupeX auth
authorPascal Corpet <pascal.corpet@m4x.org>
Sun, 26 Sep 2010 16:22:36 +0000 (18:22 +0200)
committerPascal Corpet <pascal.corpet@m4x.org>
Sun, 26 Sep 2010 16:22:36 +0000 (18:22 +0200)
ChangeLog
modules/auth/auth.inc.php

index e4754b2..961212f 100644 (file)
--- 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
index 383745a..1cb1ca4 100644 (file)
@@ -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();