mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
ouauth callback changes
This commit is contained in:
@@ -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.";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user