amici/craft-login-attempts
最新稳定版本:5.0.2
Composer 安装命令:
composer require amici/craft-login-attempts
包简介
Log all login attempts
README 文档
README
Log all login attempts (failed and success) with error message.
Requirements
- PHP version 8.0.0 or higher
- Craft CMS 4.0 or higher
Installation
Open your terminal and go to your Craft project:
cd /path/to/project
Run this command to load the plugin:
composer require amici/craft-login-attempts
In the Control Panel, go to Settings → Plugins and click the “Install” button for Login Attempts.
Usage
All login attempts will be automatically register to Login Attempts database table. No action needed here. All login attempts can be seen under "Login Attempts" link under CP main menu. Alternatively, Any user's dashboard will have "Login Activity" tab from where we can see all activity (top 100) of that user only.
You can also get user's activity on twig files. Example:
{% set query = craft.loginAttempts.activity().limit(100).all() %}
{% set query = craft.loginAttempts.activity()
.userId(currentUser.getId())
.limit(100).all() %}
Supported fields are:
id
userId
loginName
loginStatus
ipAddress
error
dateCreated
dateUpdated
uid
Documentation
Visit the Login Attempts for all documentation, guides, pricing and developer resources.
Support
Get in touch with us via the Amici Infotech Support or by creating a Github issue
统计信息
- 总下载量: 64
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2023-05-14