Преглед на файлове

[Web, oAuth2] Add id parameter to profile.php (#4235)

Sending $token['user_id'] also as 'id' in the array
tunnelpr0 преди 4 години
родител
ревизия
62fbaf8248
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      data/web/oauth/profile.php

+ 1 - 0
data/web/oauth/profile.php

@@ -15,6 +15,7 @@ if (!empty($mailbox)) {
     echo json_encode(array(
       'success' => true,
       'username' => $token['user_id'],
+      'id' => $token['user_id'],
       'identifier' => $token['user_id'],
       'email' => (!empty($mailbox['username']) ? $mailbox['username'] : ''),
       'full_name' => (!empty($mailbox['name']) ? $mailbox['name'] : 'mailcow administrative user'),