forked from derhansen/sf_yubikey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
23 lines (19 loc) · 942 Bytes
/
ext_tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
defined('TYPO3_MODE') or die();
// Add css file for YubiKey backend login
$TBE_STYLES['stylesheet2'] = '../typo3conf/ext/sf_yubikey/Resources/Public/Css/sf_yubikey.css';
// Add YubiKey fields to user settings
$GLOBALS['TYPO3_USER_SETTINGS']['columns']['tx_sfyubikey_yubikey_enable'] = [
'label' => 'LLL:EXT:sf_yubikey/Resources/Private/Language/locallang_db.xlf:users.tx_sfyubikey_yubikey_enable',
'type' => 'check',
'table' => 'be_users'
];
$GLOBALS['TYPO3_USER_SETTINGS']['columns']['tx_sfyubikey_yubikey_id'] = [
'label' => 'LLL:EXT:sf_yubikey/Resources/Private/Language/locallang_db.xlf:users.tx_sfyubikey_yubikey_id',
'type' => 'user',
'userFunc' => \DERHANSEN\SfYubikey\Hooks\UserSettings::class . '->user_yubikeyId',
'table' => 'be_users'
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToUserSettings(
'--div--;YubiKey,tx_sfyubikey_yubikey_enable, tx_sfyubikey_yubikey_id'
);