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:)



_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to