forked from WebentwicklerAt/typo3-loginlimit
-
Notifications
You must be signed in to change notification settings - Fork 3
/
ext_localconf.php
30 lines (27 loc) · 1.1 KB
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
call_user_func(function ($_EXTKEY) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
$_EXTKEY,
'auth',
'WebentwicklerAt\\Loginlimit\\Service\\AuthenticationService',
array(
'title' => 'User authentication',
'description' => 'Authentication with username/password.',
'subtype' => 'getUserBE,authUserBE,getUserFE,authUserFE',
'available' => TRUE,
// must be higher than \TYPO3\CMS\Sv\AuthenticationService (50), rsaauth (60) and OpenID (75)
'priority' => 90,
'quality' => 50,
'os' => '',
'exec' => '',
'className' => 'WebentwicklerAt\\Loginlimit\\Service\\AuthenticationService'
)
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['postUserLookUp'][$_EXTKEY] = 'EXT:' . $_EXTKEY . '/Classes/Hook/UserAuthentication.php:WebentwicklerAt\\Loginlimit\\Hook\\UserAuthentication->postUserLookUp';
if (TYPO3_MODE === 'BE') {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'WebentwicklerAt\\Loginlimit\\Command\\TaskCommandController';
}
}, $_EXTKEY);