Plugin screenshot thumbnail 1/4
Plugin screenshot thumbnail 2/4
Plugin screenshot thumbnail 3/4
Plugin screenshot thumbnail 4/4

Login Attempts plugin for Craft CMS 4

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

Plus $9/year after one year.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Active Installs
3
Version
1.0.0
License
Craft
Compatibility
Craft 4
Last release
May 14, 2023
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs