Fixed bug #6131: Bug: 'Last login' for FE and BE users not shown in BE
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Tue, 2 Dec 2008 20:39:43 +0000 (20:39 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Tue, 2 Dec 2008 20:39:43 +0000 (20:39 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4522 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/stddb/tbl_be.php
typo3/sysext/cms/tbl_cms.php
typo3/sysext/context_help/locallang_csh_fe_users.xml
typo3/sysext/lang/locallang_csh_be_users.xml
typo3/sysext/lang/locallang_general.xml

index c2d28b9..223e40b 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-12-02  Martin Kutschker  <masi@typo3.org>
+
+       * Fixed bug #6131: 'last login' of BE and FE users not shown in the BE (thanks to Christian Kuhn)
+
 2008-12-02  Dmitry Dulepov  <dmitry@typo3.org>
 
        * Fixed bug #9852: Feature: Provide a random byte generator in TYPO3 Core (thanks to Marcus Crause)
index 73f0bb8..ed98097 100755 (executable)
@@ -45,7 +45,7 @@
 $TCA['be_users'] = array(
        'ctrl' => $TCA['be_users']['ctrl'],
        'interface' => array(
-               'showRecordFieldList' => 'username,usergroup,db_mountpoints,file_mountpoints,admin,options,fileoper_perms,userMods,lockToDomain,realName,email,disable,starttime,endtime'
+               'showRecordFieldList' => 'username,usergroup,db_mountpoints,file_mountpoints,admin,options,fileoper_perms,userMods,lockToDomain,realName,email,disable,starttime,endtime,lastlogin'
        ),
        'columns' => array(
                'username' => array(
@@ -378,17 +378,31 @@ $TCA['be_users'] = array(
                        ),
                        'defaultExtras' => 'fixed-font : enable-tab',
                ),
-               'createdByAction' => array('config' => array('type' => 'passthrough'))
+               'createdByAction' => array(
+                       'config' => array(
+                               'type' => 'passthrough'
+                       )
+               ),
+               'lastlogin' => array(
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:lang/locallang_general.php:LGL.lastlogin',
+                       'config' => array(
+                               'type' => 'input',
+                               'readOnly' => '1',
+                               'size' => '8',
+                               'eval' => 'date'
+                       )
+               )
        ),
        'types' => array(
-               '0' => array('showitem' => 'disable;;;;1-1-1, username;;;;2-2-2, password, usergroup;;;;3-3-3, realName;;;;3-3-3, email, lang,
+               '0' => array('showitem' => 'disable;;;;1-1-1, username;;;;2-2-2, password, usergroup;;;;3-3-3, realName;;;;3-3-3, email, lang, lastlogin;;;;1-1-1,
                        --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.rights, admin;;;;1-1-1, userMods;;;;2-2-2, allowed_languages,
                        --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.mounts_and_workspaces, workspace_perms;;;;1-1-1, db_mountpoints;;;;2-2-2, options, file_mountpoints;;;;3-3-3, fileoper_perms,
                        --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.options, lockToDomain;;;;1-1-1, disableIPlock, TSconfig;;;;2-2-2,
                        --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.access, starttime;;;;1-1-1,endtime,
                        --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.extended'
                ),
-               '1' => array('showitem' => 'disable;;;;1-1-1, username;;;;2-2-2, password, usergroup;;;;3-3-3, realName;;;;3-3-3, email, lang,
+               '1' => array('showitem' => 'disable;;;;1-1-1, username;;;;2-2-2, password, usergroup;;;;3-3-3, realName;;;;3-3-3, email, lang, lastlogin;;;;1-1-1,
                        --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.rights, admin;;;;1-1-1, allowed_languages;;;;2-2-2,
                        --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.mounts_and_workspaces, db_mountpoints;;;;2-2-2, options, file_mountpoints;;;;3-3-3, fileoper_perms,
                        --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.options, disableIPlock;;;;1-1-1, TSconfig;;;;2-2-2,
@@ -968,4 +982,4 @@ $TCA['sys_language'] = array(
        )
 );
 
-?>
\ No newline at end of file
+?>
index 6afc384..8ff785f 100755 (executable)
@@ -44,7 +44,7 @@
 $TCA['fe_users'] = array(
        'ctrl' => $TCA['fe_users']['ctrl'],
        'interface' => array(
-               'showRecordFieldList' => 'username,password,usergroup,lockToDomain,name,title,company,address,zip,city,country,email,www,telephone,fax,disable,starttime,endtime'
+               'showRecordFieldList' => 'username,password,usergroup,lockToDomain,name,title,company,address,zip,city,country,email,www,telephone,fax,disable,starttime,endtime,lastlogin'
        ),
        'feInterface' => $TCA['fe_users']['feInterface'],
        'columns' => array(
@@ -266,11 +266,21 @@ $TCA['fe_users'] = array(
                                'softref' => 'TSconfig'
                        ),
                        'defaultExtras' => 'fixed-font : enable-tab',
+               ),
+               'lastlogin' => array(
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:lang/locallang_general.php:LGL.lastlogin',
+                       'config' => array(
+                               'type' => 'input',
+                               'readOnly' => '1',
+                               'size' => '8',
+                               'eval' => 'date'
+                       )
                )
        ),
        'types' => array(
                '0' => array('showitem' => '
-                       disable,username;;;;1-1-1, password, usergroup,
+                       disable,username;;;;1-1-1, password, usergroup, lastlogin;;;;1-1-1,
                        --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.personelData, name;;1;;1-1-1, address, zip, city, country, telephone, fax, email, www, image;;;;2-2-2,
                        --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.options, lockToDomain;;;;1-1-1, TSconfig;;;;2-2-2,
                        --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.access, starttime, endtime,
@@ -963,4 +973,4 @@ $TCA['static_template'] = array(
 
 
 
-?>
\ No newline at end of file
+?>
index 877b0f5..a811b70 100755 (executable)
@@ -33,6 +33,7 @@ The field will re-format any input to fit the format it understands so you can j
                        <label index="endtime.description">Enter the date from which the account is disabled.</label>
                        <label index="endtime.syntax">See &quot;Start&quot;</label>
                        <label index="_endtime.seeAlso">fe_users:disable,fe_users:starttime</label>
+                       <label index="lastlogin.description">This field shows the user's last log in date.</label>
                        <label index="TSconfig.description">Enter additional TSconfig for the user (advanced).</label>
                        <label index="TSconfig.details">This field allows you to enter TypoScript style configuration values for the user. Currently there are no system defined keys. If there ever will be, they will be described in detail in the administrative documentation.
 
@@ -75,4 +76,4 @@ EXT:context_help/cshimages/feusers_2.png,</label>
 A typical login box (standard) on the website where frontend users can login.</label>
                </languageKey>
        </data>
-</T3locallang>
\ No newline at end of file
+</T3locallang>
index 3f94ba5..58396c2 100755 (executable)
@@ -113,6 +113,7 @@ pages:starttime</label>
                        <label index="_endtime.seeAlso">be_users:disable,
 be_users:starttime,
 pages:starttime</label>
+                       <label index="lastlogin.description">This field shows the user's last log in date.</label>
                        <label index="lang.description">Select the &lt;i&gt;default&lt;/i&gt; language.</label>
                        <label index="lang.details">This determines the language of the backend interface for the user. All mainstream parts available for regular users are available in the system language selected.
 'Admin'-users however will experience that the 'Admin'-only parts of TYPO3 is in english. This includes all submodules in &quot;Tools&quot; and the Web&gt;Template module.
@@ -136,4 +137,4 @@ User TSconfig | http://typo3.org/documentation/document-library/doc_core_tsconfi
                        <label index="_allowed_languages.image">EXT:lang/cshimages/be_groups_18.png</label>
                </languageKey>
        </data>
-</T3locallang>
\ No newline at end of file
+</T3locallang>
index 52af2bb..0ca0c20 100755 (executable)
@@ -41,6 +41,7 @@
                        <label index="LGL.zip">Zipcode:</label>
                        <label index="LGL.country">Country:</label>
                        <label index="LGL.www">www:</label>
+                       <label index="LGL.lastlogin">Last login:</label>
                        <label index="LGL.note">Note:</label>
                        <label index="LGL.parameters">Parameters:</label>
                        <label index="LGL.code">CODE:</label>
@@ -59,4 +60,4 @@
                        <label index="LGL.versionLabel">Versioning Label:</label>
                </languageKey>
        </data>
-</T3locallang>
\ No newline at end of file
+</T3locallang>