About Login History
This module keeps track of login attempts to your site.
Modules that maintain activity logs or monitor and report activity in some form or another.
|Category 2||Process Modules|
Process modules are apps that run in the ProcessWire admin.
|Category 3||Users and Access|
Modules dealing with access in ProcessWire via Users, Roles or Permissions.
Should be safe for use in production environments. *
|Compatibility||2.2, 2.3, 2.4, 2.5, 2.6, 2.7|
|Date Added||November 5, 2012|
|Last Updated||March 12, 2018|
Please note that there are solutions much better for tracking general site usage available -- such as Google Analytics. This module isn't intended to replace those, it just offers slightly closer integration with specific ProcessWire features.
For more details please see README.md.
Copy whole directory (ProcessLoginHistory) of this module to your /site/modules/, go to Admin > Modules, hit "Check for new modules" and install module called Login History found under Process heading. Process Login History Hooks will be installed automatically with Process Login History.
Note: this module requires ProcessWire 2.2. Automatic cleanup feature requires LazyCron module, which is included in ProcessWire core distribution. Automatic cleanup isn't required for this module to work but it's highly recommended to avoid cluttering custom database table used by Process Login History with unnecessary / unwanted old rows.
How to use
During install a new Login History page is created, placed by default under Admin > Settings. From there you'll find information about each login attempt since this module was installed. Clicking more link at the end of each row reveals more information about this particular login attempt / user who initiated it.
This module provides various settings you should be aware of. Please see README.md for details.
Login History module for ProcessWire CMS/CMF.Copyright (c) 2012-2018 Teppo Koivula
Please note that there are much better solutions -- such as Google Analytics --for tracking general site usage. This module isn't intended to replace those, it just offers slightly closer integration with specific ProcessWire features.
The master branch of this module requires ProcessWire 2.3.1+. If you're runningan earlier version of ProcessWire you probably should consider updating it, but if that's not an option, please check out the legacy branch instead:
Automatic cleanup (which is recommended) requires that you install the LazyCronmodule. While said modue is bundled with the core package, it is not installed by default. Without automatic cleanup your database can eventually become slow as more and more changelog data gets stored in it.
This module is installed just like any other ProcessWire module: copy or clonethe directory containing this module to your /site/modules/ directory, log in, go to Admin > Modules, click "Check for new modules", and install "Login History".
Process Login History Hooks will be automatically installed along with the mainmodule Process Login History. Installing Process Login History RSS is completely optional: if installed, it provides you with a publicly viewable RSS feed of the login history. More details under heading "Login History RSS feed".
When you install this module, it creates a new page into the Admin calledLogin History (Settings > Login History). This page contains a list of login attempts to your site since the moment this module was installed. By clicking the more link next to each row reveals more information about that particularlogin attempt.
In order to access the Login History page, users need to a) be authenticated andb) have a role with the "login-history" permission or have the superuser role.While the login-history permission will be added automatically when this module is installed, it needs to be given to any applicable roles manually.
This module provides two types of RSS feeds: one that can be accessed only byauthenticated users via the Login History page (/setup/login-history/rss/), and other which can be enabled by installing the optional Process Login History RSS module, typing in a key to it's config settings, and accessing the feed via URL such as this: http://example.com/process-login-history-rss.xml?key=1234567890.
Since the latter feed can be accessed via a public URL, please make sure thatyour key is as difficult to guess as possible (and never use key 1234567890). If you are unsure about whether you really need this feature, please leave the Process Login History RSS module uninstalled.
This module contains a bunch of settings you should be aware of. Settings canbe defined via ProcessWire's native module configuration screen, and each of the bundled module's has it's own settings.
- Defines how dates are formatted on Login History page
- See the PHP date function reference for information on how to customizethis setting: http://www.php.net/manual/en/function.date.php
- Default: j.n.Y H:i
- Defines number of login history rows visible at once on Login History page
- Default: 25
History Max Age
- Defines how long history is kept before being removed automatically.
- Please note that automatic cleanup requires LazyCron module!
- Default: forever (no automatic cleanup)
Log Nonexisting Users
- Defines if attempts to login as nonexisting users should be logged.
- Default: false
- Key required to view the public login history RSS feed; if omitted, the feedwon't be available. Please note that the key has to be at least 10 characters long.
- Default: null (feed not available)
These are new features, fixes and improvements to current feature set plannedfor later releases:
- support for PHP's native get_browser()
- support for Browser Capabilities PHP Project / phpbrowscap(https://github.com/GaretJax/phpbrowscap)
- OS (platform) version sniffing
- usage statistics, possibly even graphs
This program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
(See included LICENSE file for full license text.)
No comments yet. Be the first to post!
Your e-mail is kept confidential and not included with your comment. Website is optional.
- Admin Helpers
- Core Modules
- Development Tools
- Field Types
- Input Fields
- Language Modules
- Language Packs
- Markup Generation
- Premium Modules
- Process Modules
- Proof of Concept
- Site Profiles
- Social, Feeds, Services
- Text Formatters
- Other Modules
- Users and Access
*Use modules at your own risk. There are no guarantees or warranties. It is recommended that you backup your site and database before installing new modules.