You are here: Home Plone products PasswordField

PasswordField (0.1-alpha1)

1
by olena last modified 2009-01-27
0.0
0.0
0.0
0.0
Released on 2006-03-12 by Eurotux Development Department, Ricardo Alves for Plone 2.0, Plone 2.1, Plone 2.5 under GPL - GNU General Public License available for All platforms.
Software development stage: alpha
Plone product that provides an archetypes field and widget to handle passwords. It features password retyping, validation, enforcing size, auto-generation and encryption, using zope's AuthEnconding API.

Description

This product provides an archetypes field and widget to handle passwords. It features password retyping, validation, size validation, auto-generation and encryption, using the zope2 AuthEnconding API.

Usage

PasswordField performs password encryption, auto-generation and length validation. Also provides a widget for password retyping.

A PasswordField instance definition may look like this:

    ...
    PasswordField(
        'password',
        encryption = 'SSHA',
        auto_generate = False,
        length = 6,
        fixed_length = False,
        widget = RetypePasswordWidget(
            label = 'Password',
            description = 'Enter and retype the password.',
        ),
    )
    ...

The 'encryption' property can have values 'SHA', 'SSHA', 'CRYPT', 'MySQL' and None for clear text (default is None).

If 'auto_generate' is true (default is false) then it will be generated a value as the default. Since it is not retrieving the value, for now it only makes sense to use 'auto_generate' without encryption (clear text). So if you use any encryption, the 'auto_generate' property will be ignored.

For a code sample, look at the example type SampleContent in directory examples/.


Document Actions
Powered by Plone