From 331f2c5e7c3458112c38d412cedec55e65c50cb7 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Tue, 18 Nov 2025 13:24:26 +0545 Subject: [PATCH] Update app/controllers/api/account.php Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- app/controllers/api/account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 68e7d598e8..e7c90acf96 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1126,7 +1126,7 @@ App::post('/v1/account/sessions/anonymous') 'userAgent' => $request->getUserAgent('UNKNOWN'), 'ip' => $request->getIP(), 'factors' => ['anonymous'], - 'countryCode' => $geoRecord['countryCode'], + 'countryCode' => $geoRecord['countryCode'] ?? '', 'expire' => DateTime::addSeconds(new \DateTime(), $duration) ], $detector->getOS(),