Converts auth-groupex to hruid; this doesn't fix the problem of the 'username' value...
authorVincent Zanotti <vincent.zanotti@polytechnique.org>
Sat, 11 Oct 2008 18:24:44 +0000 (20:24 +0200)
committerVincent Zanotti <vincent.zanotti@polytechnique.org>
Sat, 11 Oct 2008 18:24:44 +0000 (20:24 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
modules/auth/auth.inc.php

index 305e0fc..45b41a2 100644 (file)
@@ -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])) {