mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Rem comment - we set this info in the session at login and enforce roles there, and will be updating overall site role enforcement
This commit is contained in:
2
post.php
2
post.php
@@ -53,7 +53,7 @@ if(isset($_POST['add_user'])){
|
||||
$name = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['name'])));
|
||||
$email = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['email'])));
|
||||
$password = password_hash($_POST['password'], PASSWORD_DEFAULT);
|
||||
$user_specific_encryption_ciphertext = encryptUserSpecificKey($_POST['password']); //TODO: Consider this users role - if they don't need access to logins, potentially don't set this -- just know it's a pain to add afterwards (you'd need to reset their password).
|
||||
$user_specific_encryption_ciphertext = encryptUserSpecificKey($_POST['password']);
|
||||
$default_company = intval($_POST['default_company']);
|
||||
$role = intval($_POST['role']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user