Magento 2 Admin Login Alert extension
Mconnect Admin Login Alert for Magento 2 (Free)Free module that emails you when a Magento 2 admin account signs in from a new IP address or browser, or when someone keeps failing to sign in, and keeps a login history in the admin.
- Email when an admin signs in from a new IP address or browser
- Email after 5 failed logins in 15 minutes for one username or IP
- Admin login history under System, with a success or failed filter
- Daily cleanup of history older than 90 days
- Free and open source (MIT license)
-
InstantHelp Center
-
90 DaysFree Support
-
FreeLifetime Updates
-
Meet MagentoStandards
Product Description
Magento does not tell anyone when an admin signs in. If an admin password leaks, through phishing, a reused password or an old laptop, the person holding it can sign in and nobody knows until something on the store changes. Bots that try password after password against the admin sign-in page go unnoticed too. Magento locks the account after six failures by default, but it sends no message when that happens.
Mconnect Admin Login Alert for Magento 2 records every admin sign-in attempt and emails you in two cases: when an admin signs in from an IP address and browser that account has not used in the last 90 days, and when one username or one IP address reaches 5 failed sign-ins within 15 minutes.
The full history is in the admin under System > Admin Login History, so when something looks wrong you have a list to check.
Video guide
What the module does
- Records each admin sign-in attempt in the table
mconnect_admin_login_log: username, admin user ID for successful logins, IP address, browser string, result and time. - Sends a "New admin login" email when an admin signs in from an IP address and browser that the same account has not used for a successful login in the last 90 days.
- Sends a "Failed admin logins" email when one username or one IP address reaches 5 failures within 15 minutes, at most once per hour for each username and each IP address.
- The first login of each admin after install is recorded without an email, so you do not get a flood of alerts on day one.
- Shows the history newest first, 50 rows per page, with a filter for successful or failed logins.
- A daily cron job deletes history older than 90 days.
- Errors go to
var/log/admin_login_alert.log. A mail or database problem never stops an admin from signing in.
Settings
Stores > Configuration > M-Connect Media > Admin Login Alert. All settings are global.
- Enabled (default Yes). With No, nothing is recorded and no email is sent.
- Send Alerts To (comma separated). Empty means the General Contact email.
- Email Sender (default General Contact).
- New Login Alert: Enabled (default Yes) and Remember Known Logins For (Days) (default 90).
- Failed Login Alert: Enabled (default Yes), Failed Logins Threshold (default 5) and Time Window (Minutes) (default 15).
- Keep History For (Days) (default 90).
The history page and the settings each have their own admin role resource, so you can choose which admin users see them.
What it does not do
It does not block anyone. Magento's own lockout setting still decides when an account is locked, so use the module next to two-factor authentication, a custom admin URL and an IP allow list. It does not record logins through the REST admin token endpoint, because Magento does not fire the same events there. A wrong CAPTCHA on the admin sign-in page counts as a failed login. The browser check compares the full browser string, so a browser update can trigger a new login email from a known computer. Behind a proxy or CDN that Magento is not set up to trust, every login shows the proxy IP address. Flushing the Magento cache resets the once per hour limit on failed login emails. It sends no data to any outside server.
Install
Install it with Composer from GitHub:
composer config repositories.magento2-admin-login-alert vcs https://github.com/mcsventures/magento2-admin-login-alertcomposer require mconnect/module-admin-login-alert:^1.0bin/magento module:enable Mconnect_AdminLoginAlertbin/magento setup:upgradebin/magento setup:di:compile(production mode only)bin/magento cache:flush
You can also download the zip from this page after a free checkout and copy it to app/code/Mconnect/AdminLoginAlert. Magento cron must run for the history cleanup, and Magento must be able to send email for the alerts. The module is free under the MIT license.
Screenshots
-

Admin login history
Every admin sign-in attempt is listed with the username, result, IP address and browser, newest first, so you can check who got into the admin and from where.
-
Failed sign-ins in one view
The Failed filter shows only refused sign-ins. Here a script tried the username administrator six times in a row, which is the pattern of a password-guessing bot.

-

Email for a sign-in from a new browser
When an admin signs in from an IP address and browser they have not used in the last 90 days (you can change the number), you get this email with the username, IP, browser and time.
-
Email for repeated failed sign-ins
Five failed sign-ins for one username or one IP address within 15 minutes trigger this email. You get at most one per username or IP each hour, so a long attack does not flood your inbox.

-

Settings
Choose who gets the alerts, how long a known device is remembered, the failed sign-in threshold and time window, and how many days of history to keep.
Links
- Source code, README and issue tracker: Magento 2 Admin Login Alert on GitHub
- Blog post with the manual checks: how to set up a Magento admin login alert
- Want the alerts in Slack or another tool? Our Magento module development team can add it.
- Want our team to check how your admin is protected? See our Magento security audit and Magento support services, or contact us.
- More free extensions from our team: Magento 2 Payflow Guard, Magento 2 Store Health Check, Magento 2 Spam Registration Blocker
Why Our Extension
Need help in Magento website?
Do you have a question, problems or custom requirements for your website? Big or small, No matter, we're here if you feel you need support, help or consultation. Talk to us!
Get Free ConsultationRecent Blog Post
- Shopify Store Setup Checklist: 25 Things to Do Before Launch
- Magento Spam Customer Registrations: How to Find Them and Stop the Bots
- Selling Inside ChatGPT: What Shopify’s Agentic Storefronts Mean for Store Owners
- A 14-Point Magento Health Check to Run Before Something Breaks
- Shopify vs WooCommerce for a Growing Store: Which One Costs Less Over 3 Years
- Getting a Magento Payment Transaction Failed Email Every Day? It’s a Fake PayPal Response
- Moving From Magento to Shopify: What Happens to Your Customers, Passwords and Extensions
- How Much Does a Shopify Store Cost in 2026? Real Prices From Setup to Plus
- Magento vs Shopify in 2026: An Honest Comparison From a Team That Builds Both
Recent Product
-
Mconnect Admin Login Alert for Magento 2 (Free)
-
Mconnect Spam Registration Blocker for Magento 2 (Free)
-
Mconnect Store Health Check for Magento 2 (Free)
-
Mconnect Payflow Guard for Magento 2 (Free)
-
Shipping and Payment Method per Customer Group for Magento 2
-
Product Label, Ribbon Extension for Magento 2
-
Product Icon Logo Gallery Extension for Magento 2
-
Shipping Rules Extension for Magento 2
-
Product Attachment Extension for Magento 2 - File Upload
-
Free Shipping Bar with Side Mini Cart for Magento 2
-
Store Locator Google Map Extension for Magento 2
-
Track Order & Shipment Status Extension for Magento 2
-
Gift Card & Certificate Extension for Magento 2
-
Product Image Flipper Extension for Magento 2
Subscribe to get discount coupons & new releases.
Product Description
Magento does not tell anyone when an admin signs in. If an admin password leaks, through phishing, a reused password or an old laptop, the person holding it can sign in and nobody knows until something on the store changes. Bots that try password after password against the admin sign-in page go unnoticed too. Magento locks the account after six failures by default, but it sends no message when that happens.
Mconnect Admin Login Alert for Magento 2 records every admin sign-in attempt and emails you in two cases: when an admin signs in from an IP address and browser that account has not used in the last 90 days, and when one username or one IP address reaches 5 failed sign-ins within 15 minutes.
The full history is in the admin under System > Admin Login History, so when something looks wrong you have a list to check.
Video guide
What the module does
- Records each admin sign-in attempt in the table
mconnect_admin_login_log: username, admin user ID for successful logins, IP address, browser string, result and time. - Sends a "New admin login" email when an admin signs in from an IP address and browser that the same account has not used for a successful login in the last 90 days.
- Sends a "Failed admin logins" email when one username or one IP address reaches 5 failures within 15 minutes, at most once per hour for each username and each IP address.
- The first login of each admin after install is recorded without an email, so you do not get a flood of alerts on day one.
- Shows the history newest first, 50 rows per page, with a filter for successful or failed logins.
- A daily cron job deletes history older than 90 days.
- Errors go to
var/log/admin_login_alert.log. A mail or database problem never stops an admin from signing in.
Settings
Stores > Configuration > M-Connect Media > Admin Login Alert. All settings are global.
- Enabled (default Yes). With No, nothing is recorded and no email is sent.
- Send Alerts To (comma separated). Empty means the General Contact email.
- Email Sender (default General Contact).
- New Login Alert: Enabled (default Yes) and Remember Known Logins For (Days) (default 90).
- Failed Login Alert: Enabled (default Yes), Failed Logins Threshold (default 5) and Time Window (Minutes) (default 15).
- Keep History For (Days) (default 90).
The history page and the settings each have their own admin role resource, so you can choose which admin users see them.
What it does not do
It does not block anyone. Magento's own lockout setting still decides when an account is locked, so use the module next to two-factor authentication, a custom admin URL and an IP allow list. It does not record logins through the REST admin token endpoint, because Magento does not fire the same events there. A wrong CAPTCHA on the admin sign-in page counts as a failed login. The browser check compares the full browser string, so a browser update can trigger a new login email from a known computer. Behind a proxy or CDN that Magento is not set up to trust, every login shows the proxy IP address. Flushing the Magento cache resets the once per hour limit on failed login emails. It sends no data to any outside server.
Install
Install it with Composer from GitHub:
composer config repositories.magento2-admin-login-alert vcs https://github.com/mcsventures/magento2-admin-login-alertcomposer require mconnect/module-admin-login-alert:^1.0bin/magento module:enable Mconnect_AdminLoginAlertbin/magento setup:upgradebin/magento setup:di:compile(production mode only)bin/magento cache:flush
You can also download the zip from this page after a free checkout and copy it to app/code/Mconnect/AdminLoginAlert. Magento cron must run for the history cleanup, and Magento must be able to send email for the alerts. The module is free under the MIT license.
Screenshots
-

Admin login history
Every admin sign-in attempt is listed with the username, result, IP address and browser, newest first, so you can check who got into the admin and from where.
-
Failed sign-ins in one view
The Failed filter shows only refused sign-ins. Here a script tried the username administrator six times in a row, which is the pattern of a password-guessing bot.

-

Email for a sign-in from a new browser
When an admin signs in from an IP address and browser they have not used in the last 90 days (you can change the number), you get this email with the username, IP, browser and time.
-
Email for repeated failed sign-ins
Five failed sign-ins for one username or one IP address within 15 minutes trigger this email. You get at most one per username or IP each hour, so a long attack does not flood your inbox.

-

Settings
Choose who gets the alerts, how long a known device is remembered, the failed sign-in threshold and time window, and how many days of history to keep.
Links
- Source code, README and issue tracker: Magento 2 Admin Login Alert on GitHub
- Blog post with the manual checks: how to set up a Magento admin login alert
- Want the alerts in Slack or another tool? Our Magento module development team can add it.
- Want our team to check how your admin is protected? See our Magento security audit and Magento support services, or contact us.
- More free extensions from our team: Magento 2 Payflow Guard, Magento 2 Store Health Check, Magento 2 Spam Registration Blocker
| List Page Point | Emails you on admin logins from a new IP address or browser and on repeated failed logins, with a login history page. |
|---|
Pre-Sale Enquiry
Do you have an question? Please ask us. We will respond you within 24 hours. Create a support ticket.
Need Customization?
Please share your business specific extension customization requirement. Talk to our Magento developer!


