mirror of https://github.com/itflow-org/itflow
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:
parent
9eea00bccf
commit
1b96f8659e
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']);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue