Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: MOTION-157

Status
colourRed
titleDeprecated

Note

Password This password field definition has been deprecated since Magnolia 6.0. It is part of the Magnolia 5 UI framework.

There is no corresponding implementation in the For the updated implementation, see Password field for Magnolia 6 UI framework instead.

Javadoc resource link
classNameinfo.magnolia.ui.form.field.definition.PasswordFieldDefinition
renderTypeasynchronous
renders two text boxes for entry and verification of passwords. The input text is masked in the field, but the value is stored as clear text in the JCR.

...

Simple password field definition:

...

Node name
Code Block
languageyml
form:
  tabs:
    - name: tabUser
      label: User
      fields:
        - name: password
          fieldType: password
          label: Password 
Localtab
titleJCR node
Advanced Tables - Table Plus
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse

Value

Mgnl n
form

Mgnl n
tabs

Mgnl n
tabUser

Mgnl n
fields

Mgnl n
password

Mgnl p
fieldType

password

Mgnl p
label

Password

Include Page
_referencing Referencing fields shortcut info - 5 UI
_referencing Referencing fields shortcut info - 5 UI

Field-specific properties:

<field name>

required

Name of the field.

encode

optional, default is true

Encodes the password and visually masks the characters.

transformerClass

optional, default is info.magnolia.ui.form.field.transformer.basic.BasicTransformer

Property transformer class. Defines how the values are stored in the repository.

verification

optional, default is true

Verifies that the contents of the two boxes match. When set to false, the verification (second) box is not rendered.

verificationMessage

optional, default is field.password.verificationMessage

Text displayed above the field. Appears as "Please verify your entry" retrieved from a message bundle.

verificationErrorMessage

optional, default is field.password.verificationErrorMessage

Text displayed when passwords do not match. Appears as "Passwords do not match" retrieved from a message bundle.

Common field properties:

Include Page
_Common field properties - 5 UI
_Common field properties - 5 UI

Tip

Add validators to define your own password policy such as minimum length and character types.