/password

[READ ONLY] Subtree split of the Password widget (see october-widgets/library)

Primary LanguagePHP

Password

Uses hideShowPassword to mask input values on element blur.

Packagist

Installation

To install the Password widget with your plugin, add the following to your plugin's composer.json file.

"require": {
    "owl/password": "~1.0@dev"
}

Next, register the widget in your plugin's Plugin.php file.

public function registerFormWidgets()
{
    return [
        'Owl\FormWidgets\Password\Widget' => [
            'label' => 'Password',
            'code'  => 'owl-password'
        ],
    ];
}

Usage

To use the Password widget, simply declare a field type as owl-password

password:
    label: Password
    type: owl-password