mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 17:13:03 +01:00
FIX OAuth generation of token for Microsoft, Stripe and Generic
This commit is contained in:
@@ -219,7 +219,7 @@ if (!GETPOST('code')) {
|
||||
exit();
|
||||
} else {
|
||||
// We are coming from the return of an OAuth2 provider page.
|
||||
dol_syslog("We are coming from the oauth provider page keyforprovider=".$keyforprovider." code=".dol_trunc(GETPOST('code'), 5));
|
||||
dol_syslog(basename(__FILE__)." We are coming from the oauth provider page keyforprovider=".$keyforprovider." code=".dol_trunc(GETPOST('code'), 5));
|
||||
|
||||
// We must validate that the $state is the same than the one into $_SESSION['oauthstateanticsrf'], return error if not.
|
||||
if (isset($_SESSION['oauthstateanticsrf']) && $state != $_SESSION['oauthstateanticsrf']) {
|
||||
|
||||
Reference in New Issue
Block a user