sources/oauth: use mailcow full_name as username for mailcow source (#3299)

use mailcow full_name as username
This commit is contained in:
l-with 2022-07-29 22:34:17 +02:00 committed by GitHub
parent 1dcec17a58
commit b7b5168910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ class MailcowOAuth2Callback(OAuthCallback):
info: dict[str, Any],
) -> dict[str, Any]:
return {
"username": info.get("full_name"),
"email": info.get("email"),
"name": info.get("full_name"),
}