From dbb5cfd5406e047faf197b461ff6ac29044ebe67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20M=C3=BChl?= Date: Thu, 4 Jan 2018 16:00:34 +0100 Subject: [PATCH] Add config --- src/Resources/contao/config/config.php | 4 +--- src/Resources/contao/dca/tl_user.php | 13 ++++++------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/Resources/contao/config/config.php b/src/Resources/contao/config/config.php index 84be563..2ab88b4 100644 --- a/src/Resources/contao/config/config.php +++ b/src/Resources/contao/config/config.php @@ -1,5 +1,3 @@ '2FA Secret', - 'exclude' => true, - 'sql' => "varchar(64) NOT NULL default ''" + 'label' => &$GLOBALS['TL_LANG']['tl_user']['tfaSecret'], + 'inputType' => 'tfaSecret', + 'sql' => "varchar(64) NOT NULL default ''", ]; -$GLOBALS['TL_DCA']['tl_user']['palettes']['admin'] .= ',tfaSecret'; - -var_dump($GLOBALS['TL_DCA']['tl_user']); -die(); \ No newline at end of file +// Add the tfaSecret field to the login palette +$GLOBALS['TL_DCA']['tl_user']['palettes']['login'] .= ';{tfa_title},tfaSecret'; \ No newline at end of file