major update
This commit is contained in:
@@ -4,15 +4,15 @@ use MintyPHP\Router;
|
||||
use MintyPHP\Service\Auth\AuthServicesFactory;
|
||||
use MintyPHP\Support\Flash;
|
||||
|
||||
$authServicesFactory = new AuthServicesFactory();
|
||||
$authServicesFactory = app(AuthServicesFactory::class);
|
||||
$authService = $authServicesFactory->createAuthService();
|
||||
$ssoUserLinkService = $authServicesFactory->createSsoUserLinkService();
|
||||
$tenantSsoService = $authServicesFactory->createTenantSsoService();
|
||||
$microsoftOidcService = $authServicesFactory->createMicrosoftOidcService();
|
||||
|
||||
$state = trim((string) ($_GET['state'] ?? ''));
|
||||
$code = trim((string) ($_GET['code'] ?? ''));
|
||||
$error = trim((string) ($_GET['error'] ?? ''));
|
||||
$state = trim((string) (requestInput()->queryAll()['state'] ?? ''));
|
||||
$code = trim((string) (requestInput()->queryAll()['code'] ?? ''));
|
||||
$error = trim((string) (requestInput()->queryAll()['error'] ?? ''));
|
||||
|
||||
if ($error !== '') {
|
||||
Flash::error(t('Microsoft login was cancelled or failed'), 'login', 'microsoft_login_error');
|
||||
|
||||
Reference in New Issue
Block a user