瀏覽代碼

OAuth: add displayName attribute to profile for Nextcloud compatibility

Michael Kuron 5 年之前
父節點
當前提交
1db4d3d747
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      data/web/oauth/profile.php

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

@@ -17,6 +17,7 @@ if (!empty($mailbox)) {
       'identifier' => $token['user_id'],
       'identifier' => $token['user_id'],
       'email' => (!empty($mailbox['username']) ? $mailbox['username'] : ''),
       'email' => (!empty($mailbox['username']) ? $mailbox['username'] : ''),
       'full_name' => (!empty($mailbox['name']) ? $mailbox['name'] : 'mailcow administrative user'),
       'full_name' => (!empty($mailbox['name']) ? $mailbox['name'] : 'mailcow administrative user'),
+      'displayName' => (!empty($mailbox['name']) ? $mailbox['name'] : 'mailcow administrative user'),
       'created' => (!empty($mailbox['created']) ? $mailbox['created'] : ''),
       'created' => (!empty($mailbox['created']) ? $mailbox['created'] : ''),
       'modified' => (!empty($mailbox['modified']) ? $mailbox['modified'] : ''),
       'modified' => (!empty($mailbox['modified']) ? $mailbox['modified'] : ''),
       'active' => (!empty($mailbox['active']) ? $mailbox['active'] : ''),
       'active' => (!empty($mailbox['active']) ? $mailbox['active'] : ''),