1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Prioritize principle name for microsoft authentication

This commit is contained in:
David Bomba 2023-09-20 16:34:57 +10:00
parent c560c34aae
commit a388fced19

View File

@ -423,7 +423,7 @@ class LoginController extends BaseController
if ($user) {
$account = request()->input('account');
$email = $user->getMail() ?: $user->getUserPrincipalName();
$email = $user->getUserPrincipalName() ?: $user->getMail();
$query = [
'oauth_user_id' => $user->getId(),