[BUGFIX] Move TCA modification of saltedpasswords to TCA/Overrides
[Packages/TYPO3.CMS.git] / typo3 / sysext / saltedpasswords / Configuration / TCA / Overrides / be_users.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 $GLOBALS['TCA']['be_users']['columns']['password']['config']['max'] = 100;
5
6 // Backend configuration for saltedpasswords
7 // Get eval field operations methods as array keys
8 $operations = array_flip(\TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $GLOBALS['TCA']['be_users']['columns']['password']['config']['eval'], TRUE));
9 // Remove md5 and temporary password from the list of evaluated methods
10 unset($operations['md5'], $operations['password']);
11 // Append new methods to have "password" as last operation.
12 $operations['tx_saltedpasswords_eval_be'] = 1;
13 $operations['password'] = 1;
14 $GLOBALS['TCA']['be_users']['columns']['password']['config']['eval'] = implode(',', array_keys($operations));
15 unset($operations);