Fixed bug #17087: BE user password not changable via setup module with "saltedpasswor...
[Packages/TYPO3.CMS.git] / typo3 / sysext / saltedpasswords / ext_tables.php
1 <?php
2 if (!defined ('TYPO3_MODE')) {
3 die ('Access denied.');
4 }
5
6 t3lib_div::loadTCA('fe_users');
7 $TCA['fe_users']['columns']['password']['config']['max'] = 60;
8
9 if (tx_saltedpasswords_div::isUsageEnabled('FE')) {
10 $TCA['fe_users']['columns']['password']['config']['eval'] = 'trim,required,tx_saltedpasswords_eval_fe,password';
11 }
12
13 t3lib_div::loadTCA('be_users');
14 $TCA['be_users']['columns']['password']['config']['max'] = 60;
15
16 if (tx_saltedpasswords_div::isUsageEnabled('BE')) {
17 $TCA['be_users']['columns']['password']['config']['eval'] = 'trim,required,tx_saltedpasswords_eval_be,password';
18
19 // Prevent md5 hashing on client side via JS
20 $GLOBALS['TYPO3_USER_SETTINGS']['columns']['password']['eval'] = '';
21 $GLOBALS['TYPO3_USER_SETTINGS']['columns']['password2']['eval'] = '';
22 }
23
24
25 ?>