X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fauth%2Fauth.inc.php;h=383745a815ce734d8247d1e60027e7c3372727f2;hb=20edd399a0fbbb3a6ec2b876bb2b7c2f5ee0e08a;hp=6febc2ccabc5988192e636b60bad64bc4fd4c2a5;hpb=e46cf8c46341b447cc3701c8afcc9baec3da11e5;p=platal.git diff --git a/modules/auth/auth.inc.php b/modules/auth/auth.inc.php index 6febc2c..383745a 100644 --- a/modules/auth/auth.inc.php +++ b/modules/auth/auth.inc.php @@ -1,6 +1,6 @@ hasProfile()) { - // XXX: Transition table for auth. + /* Transition table for authentification. */ $personnal_data = $user->profile()->data(); $personnal_data['matricule'] = $personnal_data['xorg_id']; $personnal_data['matricule_ax'] = $personnal_data['ax_id']; @@ -60,15 +60,15 @@ function gpex_make($chlg, $privkey, $datafields, $charset) } else if ($val == 'username') { $res = XDB::query("SELECT alias FROM aliases - WHERE id = {?} AND FIND_IN_SET('bestalias', flags)", + WHERE uid = {?} AND FIND_IN_SET('bestalias', flags)", S::i('uid')); $min_username = $res->fetchOneCell(); $params .= gpex_prepare_param($val, $min_username, $tohash, $charset); } else if ($val == 'grpauth') { if (isset($_GET['group'])) { $res = XDB::query("SELECT perms - FROM groupex.membres - INNER JOIN groupex.asso ON(id = asso_id) + FROM group_members + INNER JOIN groups ON(id = asso_id) WHERE uid = {?} AND diminutif = {?}", S::v('uid'), $_GET['group']); $perms = $res->fetchOneCell();