From 39cb30f2c5cf1e32aaec4e52ee3edbabfa6e209d Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Tue, 18 Nov 2025 13:24:02 +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 6550b5ca39..78a96b98f0 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -231,7 +231,7 @@ $createSession = function (string $userId, string $secret, Request $request, Res 'userAgent' => $request->getUserAgent('UNKNOWN'), 'ip' => $request->getIP(), 'factors' => [$factor], - 'countryCode' => $geoRecord['countryCode'], + 'countryCode' => $geoRecord['countryCode'] ?? '', 'expire' => DateTime::addSeconds(new \DateTime(), $duration) ], $detector->getOS(),