PasswordField (0.1-alpha1)
- PasswordField download link: http://plone.org/products/passwordfield/releases
- Homepage of PasswordField: http://plone.org/products/passwordfield/
- PasswordField repository: http://svn.plone.org/svn/archetypes/MoreFieldsAndWidgets/PasswordField/
- Description source: http://svn.plone.org/svn/archetypes/MoreFieldsAndWidgets/PasswordField/trunk/README.txt
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/.