X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fauth%2Fauth.inc.php;h=383745a815ce734d8247d1e60027e7c3372727f2;hb=20edd399a0fbbb3a6ec2b876bb2b7c2f5ee0e08a;hp=62e94ef1c5ffb12eb2d43d05f77edbf46c4bf32a;hpb=fb813fb52d5ab65ca9a5b92b5cb9089523380d79;p=platal.git diff --git a/modules/auth/auth.inc.php b/modules/auth/auth.inc.php index 62e94ef..383745a 100644 --- a/modules/auth/auth.inc.php +++ b/modules/auth/auth.inc.php @@ -34,7 +34,7 @@ function gpex_make($chlg, $privkey, $datafields, $charset) $user =& S::user(); if ($user->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,7 +60,7 @@ 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);