[Pmwiki-users] Passwords - crypt error
Pedro Miller Rabinovitch
miller
Tue Sep 16 15:00:53 CDT 2003
On Tuesday 16 September 2003 06:09, Nathan Jones wrote:
> $DefaultPasswords['edit'] = array(crypt('foo'));
>
> The main problem is this error:
>
> Warning: crypt() expects parameter 2 to be string, array given in
> /home/optimo/public_html/pmwiki/pmwiki.php on line 1017
The error is being caused by the array you're setting, instead of a single
string. I'm using
$DefaultPasswords['edit'] = crypt('foo');
which works. But you should be able to have used the array() according to the
docs (I think, I'm writing this from memory), I just don't see the code for
it. Apparently the password array thingie only works for 'admin' level
passwords.
Cheers,
Pedro
More information about the pmwiki-users
mailing list