InputfieldPassword class
Password input with confirmation field that doesn't ever echo the input back.
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the Inputfield
class also inherits all the methods and properties of: InputfieldText, Inputfield, WireData and Wire.
Common
Constants
Name | Return | Summary | |
---|---|---|---|
Inputfield | digit | Requirements: digit required | |
Inputfield | letter | Requirements: letter required | |
Inputfield | lower | Requirements: lowercase letter required | |
Inputfield | none | Requirements: disable all above | |
Inputfield | 0 | Require old password before changes? Auto | |
Inputfield | -1 | Require old password before changes? No | |
Inputfield | 1 | Require old password before changes? Yes | |
Inputfield | other | Requirements: other character (symbol) required | |
Inputfield | upper | Requirements: uppercase letter required |
Properties
Name | Return | Summary | Default |
---|---|---|---|
Inputfield | string | Complexify ban mode, 'loose' or 'strict' | loose |
Inputfield | float | Complexify factor, lower numbers enable simpler passwords | 0.7 |
Inputfield | string | Label for password confirm placeholder. | Confirm |
Inputfield | string | Default label for field. Used when no 'label' has been set. | Set Password |
Inputfield | string | Label for new password placeholder. | New Password |
Inputfield | string | Label for old/current password placeholder. | Current Password |
Inputfield | int | Require previous password? 0=Auto, 1=Yes, -1=No | 0 |
Inputfield | array | Array of requirements (See require* constants) | [ 'letter', 'digit' ] |
Inputfield | array | Text labels used for requirements | |
Inputfield | bool | Allow password to be rendered in renderValue and/or re-populated in form? | false |
Inputfield | bool | Allow passwords to be unmasked (i.e. show user what they entered) ? 3.0.173+ | false |
Additional methods and properties
In addition to the methods and properties above, Inputfield
API reference based on ProcessWire core version 3.0.251