Update GraphHelper.php

This commit is contained in:
Viktor Scharf authored and Ralf Haferkamp committed 2023-01-23 15:20:32 +01:00
1 parent a4687cfc89
commit 62e347b788
1 file changed
+1 -1
+1 -1
View File
@@ -589,7 +589,7 @@ class GraphHelper {
$payload['onPremisesSamAccountName'] = $userName;
$payload['passwordProfile'] = ['password' => $password];
$payload['displayName'] = $displayName ?? $userName;
if (!isset($email)) {
if (!empty($email)) {
$payload['mail'] = $email ?? $userName . '@example.com';
}
return \json_encode($payload);