[pmwiki-users] Append read-auth password to url for instant login via link?

Patrick R. Michaud pmichaud at pobox.com
Wed Aug 23 17:04:52 CDT 2006


On Wed, Aug 23, 2006 at 03:51:51PM -0500, Tegan Dowling wrote:
> Hi, List:
> 
> I want to automatically log someone into a read-protected website
> (w/default password-authentication type of security) using a password
> string appended to the URL in another page, for example:
> 
> http://www.somewiki.com/Main/HomePage?action=login&authpw=readpassword
> 
> where readpassword is the group or page 'read' password.
> 
> Is there a way to do that? I don't want them to see the password box;
> I just want to pre-supply that and log them directly into the site.


    if (!isset($_POST['authpw']) && @$_GET['authpw'])
      $_POST['authpw'] = $_GET['authpw'];

Pm




More information about the pmwiki-users mailing list