Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions docs/dev/reference/widgets/password.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,34 @@
---
title: Password
description: Password text field (not yet documented)
description: Password text field.
---

{{< widget-notice >}}
This widget renders a `type="password"` text field, with the ability to show the otherwise obfuscated password (when
newly entered).

![Password]({{% asset "images/dev/reference/widgets/password.png" %}}?classes=shadow)

## Options

This widget has no special options, but all options for the [`text`]({{% relref "text" %}}) widget are also
relevant.

| Key | Value |
|-------------------|-----------------------------|---
| `inputType` | `password` (string) |

## Example

```php
// …
'myPassword' => [
'inputType' => 'password',
'eval' => [
'mandatory' => true,
'minlength' => Config::get('minPasswordLength'),
'tl_class' => 'w50'
],
'sql' => ['type' => 'string', 'length' => 255, 'default' => ''],
],
// …
```
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.