Delete code for compatibility with old forms of authentication.

This commit is contained in:
Marco A. Nina Mena
2017-08-09 10:39:26 -04:00
parent 853a079bfd
commit 722e638e89
2 changed files with 1 additions and 13 deletions

View File

@@ -828,7 +828,7 @@ class Calendar extends CalendarDefinition
$newDate = $onlyDate;
$hoursDuration -= (float)($secondRes/3600);
} else {
$newDate = date('Y-m-d H:i:s', strtotime('+' . (((float)$hoursDuration)*3600) . ' seconds', strtotime($newDate)));
$newDate = date('Y-m-d H:i:s', strtotime('+' . round((((float)$hoursDuration)*3600), 5) . ' seconds', strtotime($newDate)));
$hoursDuration = 0;
}
}

View File

@@ -41,18 +41,6 @@ try {
die();
}
//Check if the password contains the password hashes
if (!empty($_POST['form']['USR_PASSWORD']) && strlen($_POST['form']['USR_PASSWORD']) > 32) {
$pass = trim($_POST['form']['USR_PASSWORD']);
foreach (Bootstrap::getPasswordHashConfig() as $key => $hash) {
$search = substr($pass, 0, strlen($hash) + 1);
if ($search == $hash . ':') {
$pass = substr($pass, strlen($hash) + 1);
}
}
$_POST['form']['USR_PASSWORD'] = $pass;
}
$frm = $_POST['form'];
if (isset($frm['USR_USERNAME'])) {