Skip to content

Commit

Permalink
Add config
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Mühl committed Jan 4, 2018
1 parent f5e955c commit dbb5cfd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
4 changes: 1 addition & 3 deletions src/Resources/contao/config/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<?php


var_dump("hi");
die();
$GLOBALS['BE_FFL']['tfaSecret'] = 'TwoFactorWidget';
13 changes: 6 additions & 7 deletions src/Resources/contao/dca/tl_user.php
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';

0 comments on commit dbb5cfd

Please sign in to comment.