You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2020/09/07 20:04:33 UTC
[incubator-ponymail-foal] 05/10: some OAuths use 'fullname'
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit eda22fa89ba964a4db8ccb8649f00e58cab6dfdd
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Mon Sep 7 22:00:43 2020 +0200
some OAuths use 'fullname'
---
server/endpoints/oauth.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/endpoints/oauth.py b/server/endpoints/oauth.py
index cf67773..ec7a30c 100644
--- a/server/endpoints/oauth.py
+++ b/server/endpoints/oauth.py
@@ -53,7 +53,7 @@ async def process(
server,
cid,
uid=uid,
- name=rv.get("name"),
+ name=rv.get("name") or rv.get("fullname"),
email=rv.get("email"),
# Authoritative if OAuth domain is in the authoritative oauth section in ponymail.yaml
# Required for access to private emails