InputfieldPassword class

Password input with confirmation field.

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the InputfieldPassword class also inherits all the methods and properties of: InputfieldText, Inputfield, WireData and Wire.

Show class?     Show args?       Only hookable?    

Constants

NameReturnSummary 
InputfieldPassword::requireDigit constdigitRequirements: digit required 
InputfieldPassword::requireLetter constletterRequirements: letter required 
InputfieldPassword::requireLowerLetter constlowerRequirements: lowercase letter required 
InputfieldPassword::requireNone constnoneRequirements: disable all above 
InputfieldPassword::requireOldAuto const0Require old password before changes? Auto 
InputfieldPassword::requireOldNo const-1Require old password before changes? No 
InputfieldPassword::requireOldYes const1Require old password before changes? Yes 
InputfieldPassword::requireOther constotherRequirements: other character (symbol) required 
InputfieldPassword::requireUpperLetter constupperRequirements: uppercase letter required 

Properties

NameReturnSummary 
InputfieldPassword::complexifyBanMode string Complexify ban mode, 'loose' or 'strict'
DEFAULT: loose
 
InputfieldPassword::complexifyFactor float Complexify factor, lower numbers enable simpler passwords
DEFAULT: 0.7
 
InputfieldPassword::confirmLabel string Label for password confirm placeholder.
DEFAULT: Confirm
 
InputfieldPassword::defaultLabel string Default label for field. Used when no 'label' has been set.
DEFAULT: Set Password
 
InputfieldPassword::newPassLabel string Label for new password placeholder.
DEFAULT: New Password
 
InputfieldPassword::oldPassLabel string Label for old/current password placeholder.
DEFAULT: Current Password
 
InputfieldPassword::requireOld int Require previous password? 0=Auto, 1=Yes, -1=No
DEFAULT: 0
 
InputfieldPassword::requirements array Array of requirements (See require* constants)
DEFAULT: [ 'letter', 'digit' ]
 
InputfieldPassword::requirementsLabels array Text labels used for requirements  
InputfieldPassword::showPass bool Allow password to be rendered in renderValue and/or re-populated in form?
DEFAULT: false
 
InputfieldPassword::unmask bool Allow passwords to be unmasked (i.e. show user what they entered) ? 3.0.173+
DEFAULT: false
 

Additional methods and properties

In addition to the methods and properties above, InputfieldPassword also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.252