2
0
forked from Wavyzz/dolibarr

Fix screen size and timezone lost on oauth2 login

This commit is contained in:
Laurent Destailleur
2023-08-15 12:31:37 +02:00
parent e243600272
commit 4c91518f59
3 changed files with 10 additions and 8 deletions

View File

@@ -845,7 +845,9 @@ if (!defined('NOLOGIN')) {
$dol_dst = 1;
}
}
//print $datefirst.'-'.$datesecond.'-'.$datenow.'-'.$dol_tz.'-'.$dol_tzstring.'-'.$dol_dst; exit;
$dol_screenheight = empty($_POST["screenheight"]) ? (empty($_SESSION["dol_screenheight"]) ? '' : $_SESSION["dol_screenheight"]) : $_POST["screenheight"];
$dol_screenwidth = empty($_POST["screenwidth"]) ? (empty($_SESSION["dol_screenwidth"]) ? '' : $_SESSION["dol_screenwidth"]) : $_POST["screenwidth"];
//print $datefirst.'-'.$datesecond.'-'.$datenow.'-'.$dol_tz.'-'.$dol_tzstring.'-'.$dol_dst.'-'.sdol_screenheight.'-'.sdol_screenwidth; exit;
}
if (!$login) {