This commit is contained in:
Julio Cesar Laura Avendaño
2018-05-18 15:01:54 -04:00
parent 560635489e
commit aee7f2b966
2 changed files with 7 additions and 0 deletions

View File

@@ -252,6 +252,11 @@ if ($timeZoneFailed) {
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login' . PATH_SEP . 'TimeZoneAlert', '', $arrayData, SYS_URI . 'login/authentication.php');
G::RenderPage('publish');
// Destroy a significant value in session
global $G_FORM;
unset($_SESSION[$G_FORM->id]['USR_PASSWORD']);
exit(0);
}
/*----------------------------------********---------------------------------*/

View File

@@ -36,6 +36,8 @@ if (!isset($_POST)) {
}
if (isset($_SESSION['sysLogin'])) {
$_POST['form'] = $_SESSION['sysLogin'];
// Destroy variables already assigned to the global variable $_POST
unset($_SESSION['sysLogin']);
}
require_once 'authentication.php';