forked from visol/ext-cabag_loginas
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
32 lines (23 loc) · 1014 Bytes
/
Copy pathext_localconf.php
File metadata and controls
32 lines (23 loc) · 1014 Bytes
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
31
32
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
// Hook for adding switch icon to website users
$TYPO3_CONF_VARS['SC_OPTIONS']['typo3/class.db_list_extra.inc']['actions'][] = 'Cabag\CabagLoginas\Hook\RecordListHook';
// Hook to check for redirection
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['postUserLookUp'][] = 'Cabag\CabagLoginas\Hook\PostUserLookupHook->postUserLookUp';
// Trigger authentication even if login is not requested explicitely
$TYPO3_CONF_VARS['SVCONF']['auth']['setup']['FE_alwaysFetchUser'] = 1;
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService($_EXTKEY, 'auth', 'tx_cabagloginas_typo3_service_loginasservice' /* sv key */,
array(
'title' => 'Login as Service',
'description' => 'Authenticate a frontend user using a link',
'subtype' => 'getUserFE,authUserFE',
'available' => TRUE,
'priority' => 70,
'quality' => 70,
'os' => '',
'exec' => '',
'className' => 'Cabag\CabagLoginas\Typo3\Service\LoginAsService',
)
);