ouauth callback changes

This commit is contained in:
Yuri Kuznetsov
2020-10-14 13:17:46 +03:00
parent d8f58dcc1d
commit f678fb16cc
2 changed files with 17 additions and 4 deletions

View File

@@ -34,13 +34,15 @@ use Espo\Core\EntryPoints\{
NoAuth,
};
use Espo\Core\Api\Request;
class OauthCallback implements EntryPoint
{
use NoAuth;
public function run()
public function run(Request $request)
{
echo "EspoCRM rocks! If this window is not closed automatically, it's probable that URL you use to access ".
echo "If this window is not closed automatically, it's probable that URL you use to access ".
"EspoCRM doesn't match URL specified at Administration > Settings > Site URL.";
}
}

View File

@@ -29,5 +29,16 @@
include "bootstrap.php";
$app = new \Espo\Core\Application();
$app->runEntryPoint('OauthCallback');
use Espo\Core\{
Application,
ApplicationRunners\EntryPoint,
};
$app = new Application();
$app->run(
EntryPoint::class,
(object) [
'entryPoint' => 'oauthCallback',
]
);