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 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

NameReturnSummaryDefault
InputfieldPassword::complexifyBanMode string Complexify ban mode, 'loose' or 'strict' loose
InputfieldPassword::complexifyFactor float Complexify factor, lower numbers enable simpler passwords 0.7
InputfieldPassword::confirmLabel string Label for password confirm placeholder. Confirm
InputfieldPassword::defaultLabel string Default label for field. Used when no 'label' has been set. Set Password
InputfieldPassword::newPassLabel string Label for new password placeholder. New Password
InputfieldPassword::oldPassLabel string Label for old/current password placeholder. Current Password
InputfieldPassword::requireOld int Require previous password? 0=Auto, 1=Yes, -1=No 0
InputfieldPassword::requirements array Array of requirements (See require* constants) [ '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? false
InputfieldPassword::unmask 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, InputfieldPassword also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.251