[pmwiki-users] Can a user provide one password that allows both read and edit access?

Patrick R. Michaud pmichaud at pobox.com
Fri Dec 1 13:13:09 CST 2006


On Fri, Dec 01, 2006 at 09:02:27AM -0600, Gordon, Andrew wrote:
> 
>    Can a user sign on with a password that allows both read and edit access?
>    If so how is that specified? Thank you

Simply duplicate the edit password in the read password field.

For example, if you want to use 'rose' as a read password, and
'eggplant' as a password for both reading and editing, then
set the read password to be both 'rose' and 'eggplant',
and the edit password as just 'eggplant'.

If doing this for the site-wide passwords, you would do:

  $DefaultPasswords['read'] = array(crypt('rose'), crypt('eggplant'));
  $DefaultPasswords['edit'] = crypt('eggplant');

If doing this for a group or page via ?action=attr:

    Set new read password:  rose eggplant
    Set new edit password:  eggplant

Pm




More information about the pmwiki-users mailing list