Password

type => 'password' // TCA

The Password type generates a password field.

Settings

hashed
Required

false

Type

bool

Default

true

Whether the password should be hashed with the configured hashing algorithm. Set this value to false to disable hashing.

passwordPolicy
Required

false

Type

string

The password policy will ensure, that the new password complies with the configured password policy.

Password policy requirements are shown below the password field, when the focus is changed to the password field.

placeholder
Required

false

Type

string

Placeholder text for the field.

required
Required

false

Type

boolean

Default

false

If set, the field becomes mandatory.

size
Required

false

Type

integer

Abstract value for the width of the <input> field.

For more advanced configuration refer to the TCA documentation.

Examples

Minimal

name: example/password
fields:
  - identifier: password
    type: Password
Copied!

Advanced / use case

name: example/password
fields:
  - identifier: password
    type: Password
    required: true
    hashed: false
    passwordPolicy: 'default'
    fieldControl:
      passwordGenerator:
        renderType: passwordGenerator
Copied!