We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2ce2ae commit 2da1987Copy full SHA for 2da1987
phpmyfaq/src/phpMyFAQ/Auth/AuthEntraId.php
@@ -62,8 +62,15 @@ public function __construct(
62
*/
63
public function create(string $login, #[SensitiveParameter] string $password, string $domain = ''): mixed
64
{
65
+ $result = false;
66
$user = new User($this->configuration);
- $result = $user->createUser($login, '', $domain);
67
+
68
+ try {
69
+ $result = $user->createUser($login, '', $domain);
70
+ } catch (\Exception $e) {
71
+ $this->configuration->getLogger()->info($e->getMessage());
72
+ }
73
74
$user->setStatus('active');
75
$user->setAuthSource(AuthenticationSourceType::AUTH_AZURE->value);
76
0 commit comments