"password"
Purpose: a field for password entry
Field type in SQL table: "char" and "varchar", the values go to a database in encrypted state and aren't shown when editing a record.
Additional parameters
"min_length"
Purpose: minimum length
Possible values: integer numbers, positive, nonzero
By default: 6
"letters_required"
Purpose: mandatory presence of letters in the password
Possible values: "true", "false"
By default: "false"
"digits_required"
Purpose: mandatory presence of digits in the password
Possible values: "true", "false"
By default: "false"
"must_match"
Purpose: when creating or editing a record the field value must match other field (password reentry), it usually doesn't make sense to create a separate field in model for password reentry therefore it's better to add this field to the form dynamically
Possible values: string, the name of a field in a model or form
By default: not set
Samples
array("Password", "password", "password", array("required" => true)) array("Password re-entry", "password", "password_repeat", array("required" => true, "must_match" => "password"))
Previous section
"url", "redirect", "email" and "phone"