Password
Password
Password
- Full name: \Gibbon\Forms\Input\Password
- Parent class: \Gibbon\Forms\Input\TextField
Methods
- addPasswordPolicy — Attach the validation requirements for the system-wide password policy.
- addGeneratePasswordButton — Adds a button to the field that uses JS to generate and insert a password into the form.
- addConfirmation — Adds the validation to indicate this password field is a confirmation for another field.
Inherited from TextField
Inherited from Element
Inherited from Input
- setRow
- addValidationOption
- addValidation
- isValidatable
- hasValidation
- getValidationAsJSON
- getValidationOutput
Inherited from InputAttributesTrait
- setName
- getName
- setValue
- getValue
- loadFrom
- loadFromCSV
- setSize
- getSize
- isDisabled
- setDisabled
- getDisabled
- isRequired
- setRequired
- getRequired
- readonly
- setReadonly
- getReadonly
- setTabIndex
- getTabIndex
Inherited from Element
Inherited from BasicAttributesTrait
- setID
- getID
- setTitle
- getTitle
- setClass
- addClass
- removeClass
- getClass
- addData
- getData
- getAttributeString
addPasswordPolicy
Attach the validation requirements for the system-wide password policy.
Password::addPasswordPolicy( \Gibbon\Contracts\Database\Connection $pdo ): self
Returns Self: This method can be chained.
addGeneratePasswordButton
Adds a button to the field that uses JS to generate and insert a password into the form.
Password::addGeneratePasswordButton( \Gibbon\Forms\Input\Form $form, $sourceField = 'passwordNew', $confirmField = 'passwordConfirm' ): self
Returns Self: This method can be chained.
addConfirmation
Adds the validation to indicate this password field is a confirmation for another field.
Password::addConfirmation( $fieldName ): self
Returns Self: This method can be chained.