Fixed bug #13590: felogin adds field felogin_forgotHash to tca but does not add field...
[Packages/TYPO3.CMS.git] / typo3 / sysext / felogin / ext_tables.php
index bd7b4a7..10962b4 100644 (file)
@@ -16,12 +16,32 @@ $TCA['tt_content']['types']['login']['showitem']='CType;;4;;1-1-1, hidden, heade
                                                        --div--;LLL:EXT:cms/locallang_ttc.xml:CType.I.14, pi_flexform;;;;1-1-1,
                                                        --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access, starttime, endtime';
 
-       // Adds the redirect-field to the fe_group- and fe_users-table
-$tempColumns = Array (
-       "felogin_redirectPid" => Array (
+       // Adds the redirect field to the fe_groups table
+$tempColumns = array(
+       'felogin_redirectPid' => array(
+               'exclude' => 1,
+               'label'  => 'LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid',
+               'config' => array(
+                       'type' => 'group',
+                       'internal_type' => 'db',
+                       'allowed' => 'pages',
+                       'size' => 1,
+                       'minitems' => 0,
+                       'maxitems' => 1,
+               )
+       ),
+);
+
+t3lib_div::loadTCA('fe_groups');
+t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1);
+t3lib_extMgm::addToAllTCAtypes('fe_groups', 'felogin_redirectPid;;;;1-1-1');
+
+       // Adds the redirect field and the forgotHash field to the fe_users-table
+$tempColumns = array (
+       "felogin_redirectPid" => array (
                "exclude" => 1,
                "label" => "LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid",
-               "config" => Array (
+               "config" => array (
                        "type" => "group",
                        "internal_type" => "db",
                        "allowed" => "pages",
@@ -30,12 +50,15 @@ $tempColumns = Array (
                        "maxitems" => 1,
                )
        ),
+       'felogin_forgotHash' => array (
+               'exclude' => 1,
+               'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_forgotHash',
+               'config' => array (
+                       'type' => 'passthrough',
+               )
+       ),
 );
 
-t3lib_div::loadTCA("fe_groups");
-t3lib_extMgm::addTCAcolumns("fe_groups",$tempColumns,1);
-t3lib_extMgm::addToAllTCAtypes("fe_groups","felogin_redirectPid;;;;1-1-1");
-
 t3lib_div::loadTCA("fe_users");
 t3lib_extMgm::addTCAcolumns("fe_users",$tempColumns,1);
 t3lib_extMgm::addToAllTCAtypes("fe_users","felogin_redirectPid;;;;1-1-1");