mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-27 08:46:40 -06:00
Small fix
This commit is contained in:
parent
099fc49c4b
commit
08f3f2aeb9
@ -338,6 +338,12 @@ class UserEventHandler
|
|||||||
Log::debug('Now in storeUserIPAddress');
|
Log::debug('Now in storeUserIPAddress');
|
||||||
$user = $event->user;
|
$user = $event->user;
|
||||||
/** @var array $preference */
|
/** @var array $preference */
|
||||||
|
|
||||||
|
if($user->hasRole('demo')) {
|
||||||
|
Log::debug('Do not log demo user logins');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$preference = app('preferences')->getForUser($user, 'login_ip_history', [])->data;
|
$preference = app('preferences')->getForUser($user, 'login_ip_history', [])->data;
|
||||||
} catch (FireflyException $e) {
|
} catch (FireflyException $e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user