You are here: Home Plone products PasswordField
 
 

PasswordField (0.1-alpha1)

1
by olena last modified 2008-06-10
0.0
0.0
0.0
0.0
Log in to rate
Released on 2006-03-12 by R.Santos for Plone 2.0.5, Plone 2.1, Plone 2.1.1, Plone 2.1.2 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

Plone Themes
  • Schools Plone Theme
  • Lite Plone Theme
  • Techlight Plone Theme
 
Powered by Plone