hashed¶
-
hashed
¶ -
- Type
- boolean
- Path
- $GLOBALS['TCA'][$table]['columns'][$field]['config']
- Scope
- Proc.
- Default
- true
If
hashed
is set tofalse
, if the field value will be saved as plaintext to the database.Note
The configuration
'hashed' => false
has no effect for all fields in the tablesbe_users
andfe_users
. In general it is not recommended to save passwords as plain text to the database.
Examples¶
The password will be saved as plain text:
[
'columns' => [
'password_2' => [
'label' => 'password_2',
'description' => 'type=password hashed=false',
'config' => [
'type' => 'password',
'hashed' => false,
],
],
],
]
Copied!