From 1db4d3d7477f3978c703195b7e23d4057fbd7247 Mon Sep 17 00:00:00 2001 From: Michael Kuron Date: Tue, 22 Oct 2019 20:22:27 +0200 Subject: [PATCH] OAuth: add displayName attribute to profile for Nextcloud compatibility --- 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 fb33adfb..3628e58b 100644 --- a/data/web/oauth/profile.php +++ b/data/web/oauth/profile.php @@ -17,6 +17,7 @@ if (!empty($mailbox)) { 'identifier' => $token['user_id'], 'email' => (!empty($mailbox['username']) ? $mailbox['username'] : ''), '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'] : ''), 'modified' => (!empty($mailbox['modified']) ? $mailbox['modified'] : ''), 'active' => (!empty($mailbox['active']) ? $mailbox['active'] : ''),