소스 검색

Add identifier to oauth profile

This is needed for nextcloud
Michael Kuron 6 년 전
부모
커밋
c874781931
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      data/web/oauth/profile.php

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

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