From 03d7c5da71fe5fc31c420618c976cf9838c4f959 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 25 Apr 2011 23:24:42 +0200 Subject: [PATCH] Provides accounts data for accounts without profile for authgroupex (Closes #1474). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- ChangeLog | 3 +++ modules/auth/auth.inc.php | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 915fd92..11a354e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ VERSION 1.1.1 XX XX XXXX Bug/Wish: + * Auth: + - #1474: Provides accounts data for accounts without profile -JAC + * Emails: - #1110: Improves email combobox -JAC - #1459: Lists and administrates aliases on main domain -JAC diff --git a/modules/auth/auth.inc.php b/modules/auth/auth.inc.php index feed3d9..8e9a4cb 100644 --- a/modules/auth/auth.inc.php +++ b/modules/auth/auth.inc.php @@ -48,7 +48,12 @@ function gpex_make($chlg, $privkey, $datafields, $charset) $personnal_data['prenom'] = $personnal_data['firstname']; $personnal_data['flags'] = $user->profile()->isFemale() ? 'femme' : ''; } else { - $personnal_data = array(); + // Missing fields: promo, entry_year, grad_year, ax_id, xorg_id, forlife + $personnal_data = array( + 'lastname' => $user->lastname, + 'firstname' => $user->firstname, + 'sex' => $user->gender + ); } foreach ($fieldarr as $val) { @@ -66,7 +71,7 @@ function gpex_make($chlg, $privkey, $datafields, $charset) FROM email_source_account WHERE uid = {?} AND FIND_IN_SET(\'bestalias\', flags)', S::i('uid')); - $params .= gpex_prepare_param($val, $min_username, $tohash, $charset); + $params .= gpex_prepare_param($val, (is_null($min_username) ? '', $min_username), $tohash, $charset); } else if ($val == 'grpauth') { if (isset($_GET['group'])) { $res = XDB::query("SELECT perms -- 2.1.4