[pmwiki-users] Re: AuthUser (handy) enhancements
Patrick R. Michaud
pmichaud at pobox.com
Wed Dec 14 10:03:03 CST 2005
On Wed, Dec 14, 2005 at 04:51:26PM +0100, Dominique Faure wrote:
> 2005/12/14, Patrick R. Michaud <pmichaud at pobox.com>:
> > > Another helpful feature would to have a kind of ROSPattern to crypt a
> > > password when editing the site.AuthUser instead of the ?action=crypt
> >
> > Yes, this could be very useful -- I propose that (:crypt xyz:) is
> > replaced with the encrypted form of xyz upon saving. However, I have
> > no idea how to document such a feature in a non-confusing way.
>
> perhaps (:crypt 'xyz 123' [salt]:) to allow salt selection (cf.
> _crypt(...) function)?
That's a bit more code than I was planning for this (it requires
a separate function); initially I'm thinking that we don't allow
spaces in passwords or admin-provided salt. The crypt() function
will supply a random salt anyway, same as ?action=crypt does now.
Pm
More information about the pmwiki-users
mailing list