[pmwiki-users] Always logged in for my IP (no password requested) : how to ?

ABClf languefrancaise at gmail.com
Fri Sep 7 16:38:49 CDT 2012


Thank you warmly Petko for your help.

The code you suggested to be added...

if($_SERVER['REMOTE_ADDR'] == '127.0.0.1') { # your IP address here
 $_POST['authpw'] = 'xxx';                  # the admin password
}

... works fine.

Considering your second answer about security issues to be taken in
account, I'm now trying your Persistent login recipe rather instead of
the ip based solution I was asking help for.

Merci ;)

Gilles.

-- 

---------------------------------------
| A | de la langue française
| B | http://www.languefrancaise.net/
| C | languefrancaise at gmail.com
---------------------------------------



More information about the pmwiki-users mailing list