[FEATURE] Enable saltedpasswords by default
[Packages/TYPO3.CMS.git] / typo3 / sysext / saltedpasswords / ext_localconf.php
1 <?php
2 if (!defined ('TYPO3_MODE')) {
3 die ('Access denied.');
4 }
5
6 // form evaluation function for fe_users
7 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals']['tx_saltedpasswords_eval_fe'] = 'EXT:saltedpasswords/classes/eval/class.tx_saltedpasswords_eval_fe.php';
8
9 // form evaluation function for be_users
10 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals']['tx_saltedpasswords_eval_be'] = 'EXT:saltedpasswords/classes/eval/class.tx_saltedpasswords_eval_be.php';
11
12 // hook for processing "forgotPassword" in felogin
13 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['password_changed'][] = 'EXT:saltedpasswords/classes/class.tx_saltedpasswords_div.php:tx_saltedpasswords_div->feloginForgotPasswordHook';
14
15 // registering all available hashes to factory
16 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/saltedpasswords']['saltMethods'] = array(
17 'tx_saltedpasswords_salts_md5' => 'EXT:saltedpasswords/classes/salts/class.tx_saltedpasswords_salts_md5.php:tx_saltedpasswords_salts_md5',
18 'tx_saltedpasswords_salts_blowfish' => 'EXT:saltedpasswords/classes/salts/class.tx_saltedpasswords_salts_blowfish.php:tx_saltedpasswords_salts_blowfish',
19 'tx_saltedpasswords_salts_phpass' => 'EXT:saltedpasswords/classes/salts/class.tx_saltedpasswords_salts_phpass.php:tx_saltedpasswords_salts_phpass'
20 );
21
22 t3lib_extMgm::addService(
23 'saltedpasswords',
24 'auth',
25 'tx_saltedpasswords_sv1',
26 array(
27 'title' => 'FE/BE Authentification salted',
28 'description' => 'Salting of passwords for Frontend and Backend',
29 'subtype' => 'authUserFE,authUserBE',
30 'available' => TRUE,
31 'priority' => 70, // must be higher than tx_sv_auth (50) and rsaauth (60) but lower than OpenID (75)
32 'quality' => 70,
33 'os' => '',
34 'exec' => '',
35 'classFile' => t3lib_extMgm::extPath('saltedpasswords').'sv1/class.tx_saltedpasswords_sv1.php',
36 'className' => 'tx_saltedpasswords_sv1',
37 )
38 );
39
40 // Use popup window to refresh login instead of the AJAX relogin:
41 $TYPO3_CONF_VARS['BE']['showRefreshLoginPopup'] = 1;
42
43 // Register bulk update task
44 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_saltedpasswords_Tasks_BulkUpdate'] = array(
45 'extension' => $_EXTKEY,
46 'title' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:ext.saltedpasswords.tasks.bulkupdate.name',
47 'description' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:ext.saltedpasswords.tasks.bulkupdate.description',
48 'additionalFields' => '',
49 );
50
51 ?>