浏览代码

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