Merge pull request #3064 from mailcow/oauth-nextcloud

Add identifier to oauth profile
master
André Peters 2019-10-20 13:00:12 +02:00 committed by GitHub
commit cfa0c8d8a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ if (!empty($mailbox)) {
echo json_encode(array( echo json_encode(array(
'success' => true, 'success' => true,
'username' => $token['user_id'], 'username' => $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'),
'created' => (!empty($mailbox['created']) ? $mailbox['created'] : ''), 'created' => (!empty($mailbox['created']) ? $mailbox['created'] : ''),