Description

Statamic 3.0+ Codacy Badge

Login Notify for Statamic 3

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

Pricing

Statamic Login Notify is commercial software. You do not need a licence for development but when you are ready to deploy the site to production please purchase a licence per site on the Statamic Marketplace.

Install

Install the addon using composer

composer require kind-work/login-notify

Copy over the assets

php artisan vendor:publish --provider="KindWork\LoginNotify\ServiceProvider" --force

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: name
        field:
          type: text
          display: Name
      -
        handle: email
        field:
          type: text
          input: email
          display: 'Email Address'
      -
        handle: roles
        field:
          type: user_roles
          width: 50
      -
        handle: groups
        field:
          type: user_groups
          width: 50
      -
        handle: avatar
        field:
          type: assets
          max_files: 1
      -
        handle: login_notify_valid_cookies
        field:
          type: login_notify
          localizable: false
          display: 'Remembered Browsers'

Important Links
Details
Released December 29, 2019
Updated 6 months ago
Version 1.0.0-beta.2
Downloads 99
Requires Statamic 3

JRC9 Design Studio

JRC9 Design Studio empowers change makers by creating and managing their web presence, enabling them to reach a broader audience and focus on changing the world.

More by JRC9 Design Studio

Similar Addons

See All
Simplifies managing webhooks from third-party services

Captain Hook

by LionsMouth Digital in Utility, API
Simplifies managing webhooks from third-party services
Export collection entries to CSV

Exportit

by goellner.io in Tool, Utility
Export collection entries to CSV
Recover cache when it has been corrupted, rendering the site inaccessible.

Cache Crashie

by Frederik Sauer in Tool, Utility, Enhancement
Recover cache when it has been corrupted, rendering the site inaccessible.