From db69f595268cbea31cda5bc20022a1f46b32f658 Mon Sep 17 00:00:00 2001 From: Beppe Date: Mon, 21 Oct 2024 13:09:36 +0200 Subject: [PATCH] fix: autenticazione Microsoft --- modules/emails/src/OAuth2/MicrosoftLogin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/emails/src/OAuth2/MicrosoftLogin.php b/modules/emails/src/OAuth2/MicrosoftLogin.php index 94e159150..461bc82de 100644 --- a/modules/emails/src/OAuth2/MicrosoftLogin.php +++ b/modules/emails/src/OAuth2/MicrosoftLogin.php @@ -48,6 +48,6 @@ class MicrosoftLogin extends Azure implements ProviderInterface { $me = $this->get('https://graph.microsoft.com/v1.0/me', $access_token); - return $me['mail']; + return $me['userPrincipalName']; } }