[pmwiki-users] ZAP now authuser free (I think)...

The Editor editor at fast.st
Fri Dec 8 07:53:50 CST 2006


On 12/8/06, Crisses <crisses at kinhost.org> wrote:
>
> On Dec 8, 2006, at 6:37 AM, The Editor wrote:
>
> > On 12/8/06, Crisses <crisses at kinhost.org> wrote:
> >>
> >>> Here are your options:
> >>>
> >>> 1) If you can explain the exact difference between {$Author} and
> >>> {$AuthId} and the advantages of the former I can change the code.
> >>> It's one small change. And I suppose I could make the equal in my
> >>> config file...  But I've always just used AuthId, and never fully
> >>> grasped the difference between the two.
> >>
> >> The difference is @ is coming out blank, because I don't have
> >> AuthUser installed.
> >
> > What I meant was, can someone explain the exact difference between
> > $Author and $AuthId in PmWiki?  I never really understood what $Author
> > was.  It's probably easy to setup zap to use $Author if available, or
> > $AuthId when AuthUser is enabled, or something of the like.  Whatever
> > is best.  But to be honest, I don't really understand the difference
> > between $Author and $AuthId, and how they work, are generated, etc. So
> > before I do something I like to have at least a vague idea what I'm
> > doing.
>
> Difference #1
> $AuthId is not set unless AuthUser runs.
>
> Difference #2
> If a user authenticates using AuthUser $Author is the same as $AuthId
>
> Difference #3
> $Author is set from the Author field in a form -- see PmWiki.org.  We
> don't have passwords.  The site is open-edit.  $Author is set from
> the field on the edit forms.  This is perfect for open-edit sites.
>
> After that, I don't really KNOW the differences.
> > I'm fully committed to making ZAP work without AuthUser but just need
> > a bit of help from those not using AuthUser to help me know what you
> > want and if it works.  I think it's already *pretty much* authuser
> > free.
>
> No, because when I do Group.@ @ resolves to a blank, because you're
> using $AuthId.  If you want to require authentication for the
> username feature, use $AuthId.  If you just want the username use
> $Author.  $Author will work even if the site is using AuthUser,
> UserAuth, or not requiring users to log in with a password -- they
> would have to set their $Author name in the Author: field in an edit
> form, though.
>
> Crisses


OK, three good reasons to use $author instead of $authid.  Why would
anyone ever want to use $authid?  Anyone have a reason for its
existence?

I changed the zap code,  and just released it.

Cheers,
Caveman




More information about the pmwiki-users mailing list