[pmwiki-users] RSS & password-protected pages
Mike
mike at widowitz.com
Wed Oct 18 05:28:38 CDT 2006
Patrick R. Michaud wrote on 18.10.2006 07:03:
> While the PHP code does know the cleartext passwords that have been
> entered for a session, it doesn't really know which one is the
> "correct"
> one. Still, we could possibly have a custom {$AuthPw} variable that
> returns the last password enetered, and maybe that would be good
> enough.
I think I figured it out after all:
session_start();
if (!empty($_POST['authpw'])){
$_SESSION['storeauthpw'] = $_POST['authpw'];
}
$FmtPV['$AuthPw'] = $_SESSION['storeauthpw'];
does the trick quite well!
Thanks PM!
Mike
More information about the pmwiki-users
mailing list