Extension:LastUserLogin
LastUserLogin Release status: stable |
|
---|---|
Implementation | Special page , User activity |
Description | Displays the last time a user logged in |
Author(s) | Justin G. Cramer, Danila Ulyanov, Thomas Klein |
Maintainer(s) | Sophivorus |
Latest version | 1.6 (2021-02-04) |
MediaWiki | 1.29+ |
PHP | 5.5+ |
License | GNU General Public License 3.0 or later |
Download | |
lastlogin |
|
Quarterly downloads | 42 (Ranked 90th) |
Translate the LastUserLogin extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
The LastUserLogin extension introduces a special page that displays a simple table of users and the last time they logged in.
This can be useful if your wiki is used as a knowledge base for outside personnel. If you have a requirement that they check the wiki prior to placing a call or email, LastUserLogin can be used to verify that this policy is being enforced.
Installation
edit- Download and move the extracted
LastUserLogin
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LastUserLogin - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'LastUserLogin' );
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Usage
editOnce installed, visit Special:LastUserLogin to see the times at which each user last logged in.
This extension introduces the 'lastlogin' right which is needed to view the special page, and by default is only granted to admins (sysops).
Technical details
editThe extension works by updating the user_touched column every time a user loads a page. This is done via the BeforeInitialize hook.
See also
editThis extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |