From: Vincent Zanotti Date: Sat, 11 Oct 2008 18:24:44 +0000 (+0200) Subject: Converts auth-groupex to hruid; this doesn't fix the problem of the 'username' value... X-Git-Tag: xorg/0.10.0~86^2~8 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=6e181f3e8f401d235a9fb21e96da48723e659dec;p=platal.git Converts auth-groupex to hruid; this doesn't fix the problem of the 'username' value, which will soon not be translatable to a valid email address anymore. Signed-off-by: Vincent Zanotti --- diff --git a/modules/auth/auth.inc.php b/modules/auth/auth.inc.php index 305e0fc..45b41a2 100644 --- a/modules/auth/auth.inc.php +++ b/modules/auth/auth.inc.php @@ -41,9 +41,11 @@ function gpex_make($chlg, $privkey, $datafields, $charset) $personnal_data = $res->fetchOneAssoc(); foreach ($fieldarr as $val) { - /* on verifie qu'on n'a pas demandé une variable inexistante ! */ + // Determine the requested value, and add it to the answer. if ($val == 'perms') { $params .= gpex_prepare_param($val, S::has_perms() ? 'admin' : 'user', $tohash, $charset); + } else if ($val == 'forlife') { + $params .= gpex_prepare_param($val, S::v('hruid'), $tohash, $charset); } else if (S::has($val)) { $params .= gpex_prepare_param($val, S::v($val), $tohash, $charset); } else if (isset($personnal_data[$val])) {