Add identifier to oauth profile

This is needed for nextcloud
This commit is contained in:
Michael Kuron
2019-10-20 12:23:48 +02:00
committed by GitHub
parent f03c4d076a
commit c874781931

View File

@@ -14,6 +14,7 @@ if (!empty($mailbox)) {
echo json_encode(array(
'success' => true,
'username' => $token['user_id'],
'identifier' => $token['user_id'],
'email' => (!empty($mailbox['username']) ? $mailbox['username'] : ''),
'full_name' => (!empty($mailbox['name']) ? $mailbox['name'] : 'mailcow administrative user'),
'created' => (!empty($mailbox['created']) ? $mailbox['created'] : ''),