2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Use builtin sha256 function

This commit is contained in:
Adam Zammit
2023-04-26 14:53:51 +10:00
parent e81372bbca
commit fb74ee3c65
5 changed files with 5 additions and 497 deletions

View File

@@ -27,7 +27,6 @@ include_once ("db.inc.php");
include_once("login_check.php"); //Login Check dies also if the script is started directly
require_once("include/sha256.php");
$maxLoginAttempt = 10;
$timeOutTime = 600; // 10 minutes
@@ -104,7 +103,7 @@ if (!isset($_SESSION['loginID']))
else
{
$fields = $result->FetchRow();
if (SHA256::hashing($_POST['password']) == $fields['password'])
if (hash('sha256',$_POST['password']) == $fields['password'])
{
// Anmeldung ERFOLGREICH
if (strtolower($_POST['password'])=='password')