kind-work/login-notify

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (v1.1.0) of this package.

Send email notifications whenever you log at a new location.

Installs: 128

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 1

Open Issues: 20

Type:statamic-addon


README

This addon is no longer supported.

Login Notify for Statamic 3

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 security@kind.work 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.