rappasoft / laravel-authentication-log

Log user authentication details and send new device notifications.
MIT License
783 stars 95 forks source link

Make configurable the number of minutes after which the user is no longer considered a new user. #85

Open padre opened 1 year ago

padre commented 1 year ago

Users often connect from different devices (desktop, mobile, tablet, etc.) and from different locations (home, work, etc.). If we send notifications to users more than a minute old, we will generate a lot of false positives.

A simple solution would be to make the number of minutes after which a user is no longer considered a new user configurable in order to increase that time.

In my case, increasing that amount to a week (60 24 7) or a month (60 24 30) would greatly reduce false positives.

Thank you very much.

lrljoe commented 2 months ago

Not sure on this one! Will have to take a closer look, I get the point though