kind-work / login-notify
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
Requires
- hisorange/browser-detect: ^3.1.4 || ^4.0.0
- stevebauman/location: ^5.0.1
- dev-master
- v1.1.0
- v1.0.1
- v1.0.0
- v1.0.0-beta.3
- v1.0.0-beta.2
- v1.0.0-beta.1
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/qs-and-express-6.11.0
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/loader-utils-and-loader-utils-and-resolve-url-loader-1.4.2
- dev-dependabot/npm_and_yarn/eventsource-1.1.1
- dev-dependabot/npm_and_yarn/async-2.6.4
- dev-dependabot/npm_and_yarn/minimist-1.2.6
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/ajv-6.12.6
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/ws-6.2.2
- dev-dependabot/npm_and_yarn/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/ssri-6.0.2
- dev-dependabot/npm_and_yarn/y18n-4.0.1
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/ini-1.3.8
This package is auto-updated.
Last update: 2023-09-20 12:14:59 UTC
README
This addon is no longer supported.
Login Notify for Statamic 3
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.