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

@@ -115,11 +115,9 @@ if (isset($_POST['operator']) && isset($_POST['adduser']))
{
$oid = $db->Insert_ID();
include_once("../include/sha256.php");
//Insert into users
$sql = "INSERT INTO users (`users_name`,`password`,`full_name`,`superadmin`,`email`)
VALUES ($operator, '" . SHA256::hashing($_POST['password']) . "',$firstname,$admin,$email)";
VALUES ($operator, '" . hash('sha256',$_POST['password']) . "',$firstname,$admin,$email)";
$db->Execute($sql);
if (FREEPBX_PATH !== false)