-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christopher Mühl
committed
Jan 4, 2018
1 parent
f5e955c
commit dbb5cfd
Showing
2 changed files
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
<?php | ||
|
||
|
||
var_dump("hi"); | ||
die(); | ||
$GLOBALS['BE_FFL']['tfaSecret'] = 'TwoFactorWidget'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
<?php | ||
|
||
// Add the tfaSecret field to the tl_user table. | ||
$GLOBALS['TL_DCA']['tl_user']['fields']['tfaSecret'] = [ | ||
'label' => '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(); | ||
// Add the tfaSecret field to the login palette | ||
$GLOBALS['TL_DCA']['tl_user']['palettes']['login'] .= ';{tfa_title},tfaSecret'; |