[pmwiki-users] How do you test you have logged successfully ?

ThomasP pmwikidev at sigproc.de
Wed Jun 13 13:18:13 CDT 2007


On Wed, June 13, 2007 19:28, Patrick R. Michaud wrote:
> On Wed, Jun 13, 2007 at 07:21:27PM +0200, St�phane Heckel wrote:
>>
>> "Patrick R. Michaud" wrote :
>>
>> > What it really tests is whether or not any passwords have been
>> > entered.  If using a non-identity based authorization system, there's
>> > really not a notion of "logged in", but only "have you entered any
>> > passwords"?
>>
>> so, no way to test if valid user/password have been entered (according
>> infos
>> in Site.AuthUser page) ?
>
> If you're using Site.AuthUser, then that's identity-based authorization.
> If you want to check that someone has logged in with a valid username
> and password (as opposed to simply having entered a password), use:
>
>   (:if authid:)
>

Just for completeness: This last line ("(:if authid:)") also works for
authentication realized with UserAuth2. (It equivalently detects whether
someone has logged in with a valid username and password.)

ThomasP







More information about the pmwiki-users mailing list