From 6e181f3e8f401d235a9fb21e96da48723e659dec Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Sat, 11 Oct 2008 20:24:44 +0200 Subject: [PATCH] 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 --- modules/auth/auth.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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])) { -- 2.1.4