dsoares/lastlogin
Composer 安装命令:
composer require dsoares/lastlogin
包简介
Roundcube plugin to save and show user login information and login history.
README 文档
README
Roundcube plugin to save and show user login information (user login history).
When a user logs in into Roundcube, this plugin:
- shows the user's last login information in a small box for N configurable seconds;
- saves the information to a database table for history purposes.
The login history may be consulted in its own Settings tab.
If using the geolocation plugin (config option lastlogin_geolocation is true) and you have some organization internal networks configured there, that information will be shown. Also, if using the geolocation plugin with the system method, don't forget to enable the PHP GeoIP extension. For more information, see the geolocation plugin configuration.
The plugin provides a section in settings for the user to configure for how long (number of seconds) to show a notification with last access information on login.
Stable versions of this plugin are available from the Roundcube plugin repository or the releases section of the GitHub repository.
Requirements
- geolocation plugin if the config option
lastlogin_geolocationistrue(default isfalse). - The option
log_loginsin Roundcube main configuration must be enabled to register the logins.
Installation
Install with composer
Add the plugin to your composer.json file:
"require": {
(...)
"dsoares/lastlogin": "*"
}
Run:
$ composer update [--your-options]`
Copy config.inc.php.dist to config.inc.php and modify it as necessary.
Manual installation
Place this directory under your Rouncdube plugins/ folder, copy config.inc.php.dist to config.inc.php and modify it as necessary.
Then, you need to import the database script:
mysql -your_mysql_connection_options your_roundcube_database_name < SQL/mysql.initial.sql
NOTE: The plugin ships only with a MySQL/MariaDB script SQL/mysql.initial.sql; you are welcome to contribute with other database drivers.
Don't forget to enable the lastlogin plugin within the main Roundcube configuration file config/config.inc.php.
Configuration
-
$config['lastlogin_timeout'] - number of seconds to show the user login info at login; default
10. -
$config['lastlogin_lastrecords'] - number of history entries to show in the settings section; default
10. -
$config['lastlogin_geolocation'] - use the geolocation plugin; default
false. -
$config['lastlogin_dns'] - also register IP DNS names; default
true. -
$config['lastlogin_tor'] - check if IP is a TOR-network exit point; default
true. -
$config['lastlogin_tor_suffix'] - the TOR-network DNS suffix.
-
$config['lastlogin_tor_ip'] - the TOR-network IP.
-
$config['lastlogin_mask_ip'] - mask the IP? (for GDPR); default
false; -
$config['lastlogin_useragent'] - save the user-agent information?; default
false.
See the config.inc.php.dist for more information.
If you don't want the lastlogin_timeout setting to be overriden by the user, you can add it to your Roundcube dont_override.
License
This plugin is released under the GNU General Public License Version 3+.
Contact
Comments and suggestions are welcome!
Email: Diana Soares
dsoares/lastlogin 适用场景与选型建议
dsoares/lastlogin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 103 次下载、GitHub Stars 达 15, 最近一次更新时间为 2021 年 06 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「mail」 「login」 「history」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 dsoares/lastlogin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dsoares/lastlogin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 dsoares/lastlogin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
An improved history backend module for Neos
WeChat OAuth SDK
Implementation of the Omnibus Directive for Sylius application.
Debugging a problem and need to login as one of your customers? This allows you to authenticate as any of your customers.
Manage a history of your models simply by adding a package for Laravel
Courier offers a convenient and painless solution for creating emails tailored for your Kirby website.
统计信息
- 总下载量: 103
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 15
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2021-06-26