From 1db4d3d7477f3978c703195b7e23d4057fbd7247 Mon Sep 17 00:00:00 2001 From: Michael Kuron Date: Tue, 22 Oct 2019 20:22:27 +0200 Subject: [PATCH 1/2] 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'] : ''), From eccbb980023c0acdedbdc1e8f5c666441435831b Mon Sep 17 00:00:00 2001 From: Michael Kuron Date: Tue, 22 Oct 2019 20:23:00 +0200 Subject: [PATCH 2/2] OAuth: show reduced login screen --- data/web/index.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/data/web/index.php b/data/web/index.php index ffaec3c1..c9eb6b3f 100644 --- a/data/web/index.php +++ b/data/web/index.php @@ -31,7 +31,7 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
- +
@@ -49,6 +49,7 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
+
+
+
+
@@ -112,6 +117,7 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
+