This plugin allows LL::NG to send a warning message to the user’s email address when their account connects from a new location.
By default, the location is the IP address. Meaning that any connection from a different IP address will send a warning. If this is not what you want, you can change the way location is computed (see below).
Following steps are performed when the user logs in
The very first time a user logs in (empty login history), no email is sent.
Just enable it in the Manager (section General Parameters
> Advanced parameters
> Security
> New location warning
:
Warning
If you use a macro instead of ipAddr
as the location value, be sure to add the name of this macro to
General Parameters » Plugins » Login History » Session data to store
Otherwise, the value of the macro will not be remembered across logins
Following variables are available in the Warning email body:
$location
: the location value, from Session attribute to display$date
: the date of login$ua
: the full user agent string