Skip to content

Commit 48aace3

Browse files
authored
Merge pull request #126 from LowerRockLabs/Amend-Config-for-Failed-Login
Use location from failed-login not new-device config
2 parents 02e8a75 + 791a76d commit 48aace3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Listeners/FailedLoginListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function handle($event): void
4040
'user_agent' => $this->request->userAgent(),
4141
'login_at' => now(),
4242
'login_successful' => false,
43-
'location' => config('authentication-log.notifications.new-device.location') ? optional(geoip()->getLocation($ip))->toArray() : null,
43+
'location' => config('authentication-log.notifications.failed-login.location') ? optional(geoip()->getLocation($ip))->toArray() : null,
4444
]);
4545

4646
if (config('authentication-log.notifications.failed-login.enabled')) {

0 commit comments

Comments
 (0)