-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathext_localconf.php
More file actions
30 lines (28 loc) · 1.09 KB
/
Copy pathext_localconf.php
File metadata and controls
30 lines (28 loc) · 1.09 KB
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')) {
die('Access denied.');
}
call_user_func(
function () {
// Register base authentication service
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
'backend_ip_login',
'auth',
\SKeuper\BackendIpLogin\Service\AuthenticationService::class,
[
'title' => 'User authentication',
'description' => 'Authentication based on the saved ip/network address',
'subtype' => 'getUserBE,authUserBE',
'available' => true,
'priority' => 80,
'quality' => 80,
'os' => '',
'exec' => '',
'className' => \SKeuper\BackendIpLogin\Service\AuthenticationService::class
]
);
// register page renderer hook to display during the login page
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'][]
= \SKeuper\BackendIpLogin\Hook\PageRendererHook::class . '->pageRendererPreProcessHook';
}
);