X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fauth%2Fauth.inc.php;h=383745a815ce734d8247d1e60027e7c3372727f2;hb=20edd399a0fbbb3a6ec2b876bb2b7c2f5ee0e08a;hp=f232d67ff45ea926ad8cb24f6dd5008886902038;hpb=353f2d2b11c4e3c6c0bc3553813368b6f42fa9c6;p=platal.git diff --git a/modules/auth/auth.inc.php b/modules/auth/auth.inc.php index f232d67..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();