Fix loginFromGooglePassenger id mapping fallback to sub when user_id is new
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user