[pmwiki-users] How do you test you have logged successfully ?
IchBin
weconsultants at gmail.com
Wed Jun 13 13:55:06 CDT 2007
Stéphane Heckel wrote:
> Greetings, ...
>
> Does (:if enabled AuthPw:) really tell you have logged successfully ?
>
> With this script :
>
> (:if enabled AuthPw:)
> [[Main.HomePage?action=logout | Logout]] {*$AuthId}
> (:else:)
> [[Main.HomePage?action=login | Login]]
> (:ifend:)
>
> I can have the "Logout" option displayed even if I enter an invalid
> login/password, ...
>
> what's the correct syntax ?
>
> Thanks
>
> SH
I am using the UserAuth2 recipe and this works for me:
(:if loggedin:)
[[Logout ({$AuthId}) -> Site.Login?action=logout]]
[[Change your Password ->
$ScriptUrl?action=pwchange&tool_username={$AuthId}]]
(:if:)
(:if ! loggedin:)
[[Login -> Site.Login]]
(:if:)
More information about the pmwiki-users
mailing list