定制 dsoares/lastlogin 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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:

  1. shows the user's last login information in a small box for N configurable seconds;
  2. 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_geolocation is true (default is false).
  • The option log_logins in 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 我们能提供哪些服务?
定制开发 / 二次开发

基于 dsoares/lastlogin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 103
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 15
  • 点击次数: 10
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 15
  • Watchers: 7
  • Forks: 14
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2021-06-26