forked from TYPO3-extensions/be_secure_pw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
30 lines (25 loc) · 1.03 KB
/
ext_tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
if (!defined("TYPO3_MODE")) die ("Access denied.");
$tempColumns = array(
'tx_besecurepw_lastpwchange' => array(
'exclude' => 0,
'label' => 'LLL:EXT:be_secure_pw/res/lang/locallang.xml:be_users.tx_besecurepw_lastpwchange',
'config' => array(
'type' => 'input',
'size' => 12,
'eval' => 'datetime',
)
),
);
t3lib_div::loadTCA('be_users');
t3lib_extMgm::addTCAcolumns('be_users', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('be_users', 'tx_besecurepw_lastpwchange;;;;1-1-1');
$TCA['be_users']['columns']['password']['config']['eval'] = 'trim,required,tx_besecurepw_secure,password';
if (t3lib_extMgm::isLoaded('saltedpasswords')) {
if (tx_saltedpasswords_div::isUsageEnabled('BE')) {
$TCA['be_users']['columns']['password']['config']['eval'] = 'trim,required,tx_besecurepw_secure,tx_saltedpasswords_eval_be,password'; #trim,required,tx_t3secsaltedpw_salted_be,password
}
}
/* override language file */
$TCA_DESCR['_MOD_user_setup']['refs'][] = 'EXT:be_secure_pw/res/lang/ux_locallang_csh_mod.xml';
?>