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:
parent
c560c34aae
commit
a388fced19
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user