mirror of
https://github.com/itflow-org/itflow
synced 2026-03-19 04:04:51 +00:00
Fix syntax error when adding user, thanks @fleetlognorge
This commit is contained in:
@@ -15,7 +15,7 @@ if (isset($_POST['add_user'])) {
|
|||||||
$password = password_hash(trim($_POST['password']), PASSWORD_DEFAULT);
|
$password = password_hash(trim($_POST['password']), PASSWORD_DEFAULT);
|
||||||
$user_specific_encryption_ciphertext = encryptUserSpecificKey(trim($_POST['password']));
|
$user_specific_encryption_ciphertext = encryptUserSpecificKey(trim($_POST['password']));
|
||||||
|
|
||||||
mysqli_query($mysqli, "INSERT INTO users SET user_name = '$name', user_email = '$email', user_password = '$password', user_specific_encryption_ciphertext = '$user_specific_encryption_ciphertext' user_role_id = $role");
|
mysqli_query($mysqli, "INSERT INTO users SET user_name = '$name', user_email = '$email', user_password = '$password', user_specific_encryption_ciphertext = '$user_specific_encryption_ciphertext', user_role_id = $role");
|
||||||
|
|
||||||
$user_id = mysqli_insert_id($mysqli);
|
$user_id = mysqli_insert_id($mysqli);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user