07bac983ad4d5c74118d47a23ed436dfb8eeff54
[Packages/TYPO3.CMS.git] / typo3 / sysext / saltedpasswords / ext_localconf.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 // Form evaluation function for fe_users
6 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals']['tx_saltedpasswords_eval_fe'] = 'EXT:saltedpasswords/Classes/Evaluation/FrontendEvaluator.php';
7 // Form evaluation function for be_users
8 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals']['tx_saltedpasswords_eval_be'] = 'EXT:saltedpasswords/Classes/Evaluation/BackendEvaluator.php';
9 // Hook for processing "forgotPassword" in felogin
10 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['password_changed'][] = 'EXT:saltedpasswords/Classes/class.tx_saltedpasswords_div.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\SaltedPasswordsUtility->feloginForgotPasswordHook';
11 // Registering all available hashes to factory
12 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/saltedpasswords']['saltMethods'] = array(
13 'TYPO3\\CMS\\Saltedpasswords\\Salt\\Md5Salt' => 'EXT:saltedpasswords/Classes/salts/class.tx_saltedpasswords_salts_md5.php:TYPO3\\CMS\\Saltedpasswords\\Salt\\Md5Salt',
14 'TYPO3\\CMS\\Saltedpasswords\\Salt\\BlowfishSalt' => 'EXT:saltedpasswords/Classes/salts/class.tx_saltedpasswords_salts_blowfish.php:TYPO3\\CMS\\Saltedpasswords\\Salt\\BlowfishSalt',
15 'TYPO3\\CMS\\Saltedpasswords\\Salt\\PhpassSalt' => 'EXT:saltedpasswords/Classes/salts/class.tx_saltedpasswords_salts_phpass.php:TYPO3\\CMS\\Saltedpasswords\\Salt\\PhpassSalt'
16 );
17 \TYPO3\CMS\Core\Extension\ExtensionManager::addService('saltedpasswords', 'auth', 'TYPO3\\CMS\\Saltedpasswords\\SaltedPasswordService', array(
18 'title' => 'FE/BE Authentification salted',
19 'description' => 'Salting of passwords for Frontend and Backend',
20 'subtype' => 'authUserFE,authUserBE',
21 'available' => TRUE,
22 'priority' => 70,
23 // must be higher than tx_sv_auth (50) and rsaauth (60) but lower than OpenID (75)
24 'quality' => 70,
25 'os' => '',
26 'exec' => '',
27 'classFile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('saltedpasswords') . 'sv1/class.tx_saltedpasswords_sv1.php',
28 'className' => 'TYPO3\\CMS\\Saltedpasswords\\SaltedPasswordService'
29 ));
30 // Use popup window to refresh login instead of the AJAX relogin:
31 $TYPO3_CONF_VARS['BE']['showRefreshLoginPopup'] = 1;
32 // Register bulk update task
33 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['TYPO3\\CMS\\Saltedpasswords\\Task\\BulkUpdateTask'] = array(
34 'extension' => $_EXTKEY,
35 'title' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:ext.saltedpasswords.tasks.bulkupdate.name',
36 'description' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:ext.saltedpasswords.tasks.bulkupdate.description',
37 'additionalFields' => 'TYPO3\\CMS\\Saltedpasswords\\Task\\BulkUpdateFieldProvider'
38 );
39 ?>