Fix loginFromGooglePassenger id mapping fallback to sub when user_id is new

This commit is contained in:
Hamza-Ayed
2026-06-24 23:52:32 +03:00
parent aba42f0a7f
commit 5f431b4f19

View File

@@ -8,6 +8,9 @@ $appName = filterRequest("appName") ?: 'unknown';
// الاعتماد كلياً على الـ ID المستخرج من JWT داخل connect.php
$id = $user_id;
if ($id === 'new' && isset($decoded->sub) && $decoded->sub !== 'new') {
$id = $decoded->sub;
}
// تجهيز الاستعلام
$sql = "SELECT