NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Commit

OAuth: add displayName attribute to profile for Nextcloud compatibility

1db4d3d7
Michael Kuron <[email protected]> 7 years ago
data/web/oauth/profile.php | 1 +
 1 file changed, 1 insertion(+)

Diff

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'] : ''),