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

Sending $token['user_id'] also as 'id' in the array
master
tunnelpr0 2021-08-19 19:56:22 +02:00 committed by GitHub
parent 913e9cbb11
commit 62fbaf8248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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'),