Extension:LoginNotify

The LoginNotify extension notifies you when someone logs into your account. It can be configured to give warnings after a certain number of failed login attempts (The number is configurable, and can be different between unknown IPs/devices and known IP/devices). It can also give echo/email notices for successful logins from IPs you don't normally use. It can optionally integrate into the CheckUser extension in order to determine if the login is from an IP address you don't normally use. It can also set a cookie to try and determine if the login is from a device you normally use.

Installation
This extension requires the Echo extension to be installed. This extension can optionally integrate with the CheckUser extension if it is installed, but does not require it.

Configuration parameters
Parameters (From extension.json) "LoginNotifyAttemptsKnownIP": 10, "LoginNotifyExpiryKnownIP": 604800, "LoginNotifyAttemptsNewIP": 3, "LoginNotifyExpiryNewIP": 1209600, "LoginNotifyCheckKnownIPs": true, "LoginNotifyEnableOnSuccess": true, "@doc": "Enable notification for users with certain rights. To disable set to false", "LoginNotifyEnableForPriv": [ "editinterface", "userrights" ], "@doc": "Override this to use a different secret than $wgSecretKey", "LoginNotifySecretKey": null, "@doc": "Expiry in seconds. Default is 180 days", "LoginNotifyCookieExpire": 15552000, "@doc": "Override to allow sharing login cookies between sites on different subdomains", "LoginNotifyCookieDomain": null, "LoginNotifyMaxCookieRecords": 6, "@doc": "Set to false to disable caching IPs in memcache. Set to 0 to cache forever. Default 60 days.", "LoginNotifyCacheLoginIPExpiry": 5184000