[pmwiki-users] authuser : Minor Bug [was Setting the Author Automatically - all blank]

Patrick Ogay lists at basel-inside.ch
Wed Feb 8 06:45:17 CST 2006


I think the mechanism should work like that, but there seems to be
another problem.
It works partially now, it depends on how the user is logged in.

If I log in with user "pogay" (who has edit-access)  the author field
stays empty.
If I log in with my colleagues user "nschaffer" (a restricted user), I
have to autenificate for edit, and then "nschaffner" is displayed in the
author field... this case is ok.  (actually it authentificate for edit
with "pogay"/pw ).

I just played with the BasicVariables. {$Author} confirms my tests. In
the first case it is not set.
That seems to be a  bug.

Patrick O.

P.S.
The difference of the users: pogay is defined in .htaccess
$DefaultPasswords['edit']   = 'id:pogay,pwiget';

Tests with pwiget are o.k!!!  so it seems to be a problem of
.htpasswd-users
strange: nschaffner is also defined in .htacces... someting is strange.



Dominique Faure wrote:

>The "cleanest" way would be to write (no string constants):
>
>include_once("$FarmD/scripts/author.php");
>if($AuthId && ! stripmagic(@$_COOKIE[$AuthorCookie])) {
>  $Author = $AuthId ;
>  setcookie($AuthorCookie, $Author, $AuthorCookieExpires, $AuthorCookieDir);
>}
>
>Nota: The cookie prefix is only required to enable fields isolation.
>
>Dom
>
>
>
>  
>






More information about the pmwiki-users mailing list