Update user_edit.php

This commit is contained in:
FusionPBX 2019-10-31 21:55:12 -06:00 committed by GitHub
parent db08dedbef
commit 23341f781e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -121,7 +121,7 @@
$username = trim($_POST["username"]); $username = trim($_POST["username"]);
$password = trim($_POST["password"]); $password = trim($_POST["password"]);
$password_confirm = trim($_POST["password_confirm"]); $password_confirm = trim($_POST["password_confirm"]);
$user_email = $_POST["user_email"]; $user_email = trim($_POST["user_email"]);
$user_status = $_POST["user_status"]; $user_status = $_POST["user_status"];
$user_language = $_POST["user_language"]; $user_language = $_POST["user_language"];
$user_time_zone = $_POST["user_time_zone"]; $user_time_zone = $_POST["user_time_zone"];
@ -129,15 +129,15 @@
$contact_uuid = $_POST["contact_uuid"]; $contact_uuid = $_POST["contact_uuid"];
} }
else if (permission_exists('user_add') && $action == 'add') { else if (permission_exists('user_add') && $action == 'add') {
$contact_organization = $_POST["contact_organization"]; $contact_organization = trim($_POST["contact_organization"]);
$contact_name_given = $_POST["contact_name_given"]; $contact_name_given = trim($_POST["contact_name_given"]);
$contact_name_family = $_POST["contact_name_family"]; $contact_name_family = trim($_POST["contact_name_family"]);
} }
$group_uuid_name = $_POST["group_uuid_name"]; $group_uuid_name = $_POST["group_uuid_name"];
$user_enabled = $_POST["user_enabled"]; $user_enabled = $_POST["user_enabled"];
$api_key = $_POST["api_key"]; $api_key = trim($_POST["api_key"]);
if (permission_exists('message_view')) { if (permission_exists('message_view')) {
$message_key = $_POST["message_key"]; $message_key = trim($_POST["message_key"]);
} }
//validate the token //validate the token