Login Notify

JRC9 Design Studio
Login Notify

Statamic 3.0+ Commercial License Codacy Badge

Statamic Login Notify is an addon for Statamic 3 that sends email notifications when a user logs into a new device.

Requirements

  • PHP 7.2+
  • Statamic v3+
  • Laravel 7+

Installation

Install the addon using composer

composer require kind-work/login-notify

Location Map

If you would like to send a map showing the location of the login in the email you will need to provide a valid key for the Google Maps Static API. I recommend you restrict this by IP address(es) to the IP(s) used by your servers.

Once you obtain this key add it to your environment variable: GOOGLE_MAPS_KEY

Location Lookup

Location lookup is done using the Laravel Location package. Refer to the documentation for this package to customize the location lookups.

Fieldtype (forget sessions)

If you would like to give users the ability to forget browsers where they have previously logged in you can add the Login Notify field type to the user blueprint with the key login_notify_valid_cookies.

title: User
sections:
  main:
    display: Main
    fields:
      ...
      -
        handle: login_notify_valid_cookies
        field:
          type: login_notify
          localizable: false
          display: 'Remembered Browsers'

Changelog

Please see the Release Notes for more information what has changed recently.

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

License

This is commercial software. You may use the package for your sites. Each site requires its own license. You can purchase a licence from The Statamic Marketplace.