[pmwiki-users] Condition something on "logged-in user" when using password-authentication?
Patrick R. Michaud
pmichaud at pobox.com
Mon May 22 21:45:14 CDT 2006
On Mon, May 22, 2006 at 01:07:13PM -0500, Tegan Dowling wrote:
> I'm trying, on as many of my wikis as possible, to keep to the default,
> password-based authentication. One problem that I keep having with it is
> that I want Site.PageActions and a logout link to be visible to anyone who
> has logged in - by which I simply mean 'has used a password during this
> browser session'. This would allow the wiki to keep those items on-screen
> even when the logged-in non-admin doesn't have edit rights - as when
> viewing Site pages, for example.
>
> Is there a condition I can use for this? So I can use (:if auth
> anythingatall:) or (:if isset passwordcookie:) or something like that?
The following might (should?) work:
(:if enabled AuthPw:)
This will return true if any passwords have been entered during the
current browser session. (One can use ?action=login to force
entering of a password.)
If that doesn't work, let me know and I'll provide a custom
condition.
Pm
More information about the pmwiki-users
mailing list