Clean use of $_POST

This commit is contained in:
Laurent Destailleur
2024-03-28 21:29:02 +01:00
parent 13e903aca4
commit b58e439a17
40 changed files with 54 additions and 85 deletions

View File

@@ -161,22 +161,8 @@ if (!GETPOST('code')) {
$_SESSION['oauthstateanticsrf'] = $state;
// Save more data into session
// Not required. All data are saved into $_SESSION['datafromloginform'] when form is posted with a click on Login with
// Google with param actionlogin=login and beforeoauthloginredirect=google, by the functions_googleoauth.php.
/*
if (!empty($_POST["tz"])) {
$_SESSION["tz"] = $_POST["tz"];
}
if (!empty($_POST["tz_string"])) {
$_SESSION["tz_string"] = $_POST["tz_string"];
}
if (!empty($_POST["dst_first"])) {
$_SESSION["dst_first"] = $_POST["dst_first"];
}
if (!empty($_POST["dst_second"])) {
$_SESSION["dst_second"] = $_POST["dst_second"];
}
*/
// No need to save more data in sessions. We have several info into $_SESSION['datafromloginform'], saved when form is posted with a click
// on "Login with Google" with param actionlogin=login and beforeoauthloginredirect=google, by the functions_googleoauth.php.
if ($forlogin) {
$apiService->setApprouvalPrompt('force');