[TASK] Change check for TYPO3_MODE
[Packages/TYPO3.CMS.git] / typo3 / sysext / sv / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 // Register base authentication service
5 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
6 $_EXTKEY,
7 'auth',
8 'TYPO3\\CMS\\Sv\\AuthenticationService',
9 array(
10 'title' => 'User authentication',
11 'description' => 'Authentication with username/password.',
12 'subtype' => 'getUserBE,authUserBE,getUserFE,authUserFE,getGroupsFE,processLoginDataBE,processLoginDataFE',
13 'available' => TRUE,
14 'priority' => 50,
15 'quality' => 50,
16 'os' => '',
17 'exec' => '',
18 'className' => 'TYPO3\\CMS\\Sv\\AuthenticationService'
19 )
20 );
21 // Add hooks to the backend login form
22 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/index.php']['loginFormHook'][$_EXTKEY] = 'TYPO3\\CMS\\Sv\\LoginFormHook->getLoginFormTag';
23 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/index.php']['loginScriptHook'][$_EXTKEY] = 'TYPO3\\CMS\\Sv\\LoginFormHook->getLoginScripts';