Skip to content

Commit d93b06c

Browse files
committed
Also ignore null country code
1 parent d0588d5 commit d93b06c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/UsersController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ private function storeUser(array $rawParams)
10041004
$user = $registration->user();
10051005

10061006
// report unknown country code but ignore non-country from cloudflare
1007-
if ($country === null && $countryCode !== 'T1') {
1007+
if ($countryCode !== null && $country === null && $countryCode !== 'T1') {
10081008
app('sentry')->getClient()->captureMessage(
10091009
'User registered from unknown country',
10101010
null,

0 commit comments

Comments
 (0)