Debug v18

This commit is contained in:
Laurent Destailleur
2023-06-05 15:20:59 +02:00
parent bd4e5c3675
commit 23850c0241
6 changed files with 35 additions and 3 deletions

View File

@@ -141,6 +141,10 @@ if (GETPOST('code')) { // We are coming from oauth provider page
$backtourl = $_SESSION["backtourlsavedbeforeoauthjump"];
unset($_SESSION["backtourlsavedbeforeoauthjump"]);
if (empty($backtourl)) {
$backtourl = DOL_URL_ROOT.'/';
}
header('Location: '.$backtourl);
exit();
} catch (Exception $e) {
@@ -162,6 +166,10 @@ if (GETPOST('code')) { // We are coming from oauth provider page
$url = 'https://connect.stripe.com/oauth/authorize?response_type=code&client_id='.$conf->global->$keyforparamid.'&scope=read_write';
}
if (empty($url)) {
$url = DOL_URL_ROOT.'/';
}
// we go on oauth provider authorization page
header('Location: '.$url);
exit();