From 62fbaf8248643b24bfd24bdd46f554dfda88a3f1 Mon Sep 17 00:00:00 2001 From: tunnelpr0 <61991283+tunnelpr0@users.noreply.github.com> Date: Thu, 19 Aug 2021 19:56:22 +0200 Subject: [PATCH] [Web, oAuth2] Add id parameter to profile.php (#4235) Sending $token['user_id'] also as 'id' in the array --- data/web/oauth/profile.php | 1 + 1 file changed, 1 insertion(+) diff --git a/data/web/oauth/profile.php b/data/web/oauth/profile.php index 4364c190..ff6b5833 100644 --- a/data/web/oauth/profile.php +++ b/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'),