Commit Graph

115 Commits

Author SHA1 Message Date
FusionPBX
cd8d5302ac Fix temporary permissions 2024-11-29 13:57:01 -07:00
FusionPBX
075dcfd96f Update the path to contacts 2024-11-16 21:11:07 -07:00
FusionPBX
3a0d5fb512 Remove the session when the password is changed 2024-10-27 18:04:35 -06:00
fusionate
8ffbcd09f3 Users - Edit: Minor visual adjustment to API Key Generate and View buttons. 2024-09-27 12:43:45 -06:00
FusionPBX
8edc5d1205 User edit add a Settings button 2024-09-12 09:41:01 -06:00
FusionPBX
2182ebd0b4 Added the content card div 2024-09-05 23:37:34 -06:00
FusionPBX
e302122e90 Add new permission user_password 2024-06-14 14:43:11 -06:00
frytimo
614986cd7a use a single database instead of using new database in user_edit (#6939) 2024-04-02 11:55:32 -06:00
FusionPBX
0e658a486f Update user_edit.php
Move the validation earlier in the code
2024-04-02 11:01:43 -06:00
FusionPBX
bd8cfc9851 Security: Validate the user_status variable 2024-04-02 10:52:02 -06:00
frytimo
3a4c2f72e2 Event socket bug fix and more docs (#6823)
* Add documentation to methods. Use is_resource for added type detection

* Allow connect to specify timeout in microseconds with default 30,000

* Update calling mechanism for event sockets

* Update project for new singleton event sockets

* remove unused variable

* catch errors on closing the socket
2023-12-02 17:16:18 -07:00
FusionPBX
5e0c27d592 User Status was hidden by an in accessible session variable use user_status permission. There permission is more consistent with the rest of the project. 2023-11-15 08:28:49 -07:00
fusionate
d9d17a6917 Misc: Remove parameters from event_socket_create() calls. 2023-09-20 18:43:17 +00:00
FusionPBX
e40cc6efd1 Prevent an error in PHP 8.1warning 2023-07-24 14:14:48 -06:00
markjcrane
57614ea8af Add user_type options: default, virtual 2023-07-13 17:22:52 -06:00
frytimo
d7bbcd89f5 Use magic constant dir (#6711)
* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__ to load only functions.php

* replace spaces with tab character

* update dirname command to use levels instead of nesting

* use magic constant __DIR__

* update dirname command to use levels instead of nesting

* Update access_control_edit.php

* Update access_control_import.php

* Update access_controls.php

* Update dnd.php

* Update access_controls_reload.php

* Update call_center_agents.php

* Update call_center_agents.php

* Update fax_queue.php

* Update login.php

* Update pdo.php

* Update pdo_vm.php

* Update switch.php

* Update index.php

* Update css.php

* Update v_mailto.php

* Update fax_to_email.php

---------

Co-authored-by: FusionPBX <markjcrane@gmail.com>
2023-06-15 11:28:23 -06:00
fusionate
364f2582a3 User - Edit: Create socket to update user state even if user status empty. 2023-06-12 23:06:55 +00:00
fusionate
d327d569f5 Misc: Updates for PHP 8.1 (?: to ??) 2023-06-06 22:05:05 +00:00
markjcrane
65bc00535f Use empty and not empty 2023-05-24 17:42:37 -06:00
Luis Daniel Lucio Quiroz
af101bcd7b Fixes PHP fatal error when editing users (#6700)
* Update user_edit.php

Some PHP implementations return a fatal error when in_array() has the second parameter null.

 $_SESSION['authentication']['methods']  is null by default on new installations.
2023-05-24 17:27:06 -06:00
markjcrane
eafa89a624 Fixed require unique username globally or per domain 2023-05-24 10:13:49 -06:00
fusionate
31f4368851 User - Edit: Updates for PHP 8.1 2023-05-17 05:10:15 +00:00
fusionate
ea0c03c3ea User - Edit: Clean up. 2023-05-17 04:43:23 +00:00
fusionate
c2776e993f User - Edit: Fix duplicate Language records and Time Zone being deleted. Also updates for PHP 8.1. 2023-05-17 04:05:52 +00:00
fusionate
2bcfaf27f2 User - Edit: Updates for PHP 8.1 2023-05-13 04:55:04 +00:00
frytimo
fef8165be2 Frytimo pr patches for php8.1 (#6630)
* Passing null to parameter #2 ($string) of type string is deprecated

* Passing null to parameter #1 ($string) of type string is deprecated

* php 8.1 fixes

* php 8.1 fixes - replace strlen($var) > 0 with !empty($var)

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - strlower with null

* php 8.1 fixes - strreplace with null

* php 8.1 fixes - passing null to base64_decode

* php 8.1 fixes - check for false and check for null on $this->dir

* php 8.1 fixes - remove assignment of $db variable to modules object

* php 8.1 fixes - avoid sending null to substr

* php 8.1 fixes - change ${var} to {$var}

* php 8.1 fixes - check for null before preg_replace

* php 8.1 fixes - remove setting db variable on domains object

* php 8.1 fixes - set empty string if $row['domain_setting_subcategory'] is null

* php 8.1 fixes - set empty string if $_REQUEST['show'] is not available

* php 8.1 fixes

* php 8.1 fixes - correct $_POST checking syntax

* php 8.1 fixes - correct $_POST variables

* php 8.1 fixes

* Use brackets consistently

* Update user_setting_edit.php

* Change to not empty

* Update device.php

* Update text.php

---------

Co-authored-by: Tim Fry <tim@voipstratus.com>
Co-authored-by: FusionPBX <markjcrane@gmail.com>
2023-05-05 10:46:37 -06:00
FusionPBX
5cfdccdc2a [bug] base32 encoded TOTP secret
Some applications rejected the TOTP secret. Use the Base2n class to create a better base32 encoded TOTP secret.
2023-04-27 01:14:06 -06:00
FusionPBX
e405e375f6 Add totp and enhance api key 2023-04-23 01:26:51 -06:00
Alex
7326cb845a Set default for enabled (#6556)
* Set default for enabled

* Update conference_profile_edit.php

* Update call_block_edit.php

* Update conference_control_edit.php

* Update conference_control_detail_edit.php

* Update conference_profile_edit.php

* Update conference_profile_param_edit.php

* Update conference_edit.php

* Update destination_edit.php

* Update device_edit.php

* Update device_profile_edit.php

* Update device_vendor_edit.php

* Update email_template_edit.php

* Update extension_edit.php

* Update module_edit.php

* Update phrase_edit.php

* Update ring_group_edit.php

* Update sip_profile_edit.php

* Update stream_edit.php

* Update time_condition_edit.php

* Update var_edit.php

* Update voicemail_edit.php

* Update call_block_edit.php

* Update default_setting_edit.php

* Update domain_setting_edit.php

* Update domain_edit.php

* Update user_edit.php

* Update bridge_edit.php

* Update sip_profile_edit.php

* Update sofia_global_setting_edit.php

* Update call_flow_edit.php

* Update email_template_edit.php

* Update call_flow_edit.php

* Update bridge_edit.php

* Update email_template_edit.php

* Update sip_profile_edit.php

* Update sofia_global_setting_edit.php

* Update bridge_edit.php

* Update call_flow_edit.php

* Update conference_control_edit.php

* Update sip_profile_edit.php

* Update stream_edit.php

* Update default_setting_edit.php

* Update email_template_edit.php

* Update extension_setting_edit.php

* Update default_setting_edit.php

* Update dashboard_edit.php

* Update dashboard_edit.php

* Update default_setting_edit.php
2023-02-17 14:21:41 -07:00
Alex
a229d1e46c Add enabled toggle to more pages and bug fix (#6552)
* Add enabled toggle to more pages and bug fix

* Add device profile enable toggle

* fixed enable on bridge_edit.php

* Fixed enable on call_block_edit.php

* Fixed enable on call_flow_edit.php

* Fixed enable on conference_center_edit.php

* Add conference room enabled toggle

* Fixed enable on conference_control_detail_edit.php

* Fixed enable on conference_control_edit.php

* Fixed enable on conference_profile_edit.php

* Add conference profile param enabled toggle

* Fixed enable on conference_edit.php

* Fixed enabled on device_edit.php

* Fixed enable on extension_edit.php

* Fixed enable on gateway_edit.php

* Fixed enable on number_translation_edit.php

* Fixed enable on phrase_edit.php

* Fixed enable on ring_group_edit.php

* Fixed enable on sip_profile_edit.php

* Fixed enable on stream_edit.php

* Fixed enable on time_condition_edit.php

* Fixed enable on var_edit.php

* Fixed enable on voicemail_edit.php

* Fixed enable on user_edit.php

* Fixed enable on user_setting_edit.php

* Update user_edit.php

* Update bridge_edit.php

* Update call_flow_edit.php

* Update conference_control_edit.php

* Update stream_edit.php

* Fixed enable on default_setting_edit.php

* Fixed enable on domain_edit.php

* Fixed enable on email_template_edit.php

* Fixed enable on module_edit.php
2023-02-14 11:19:02 -07:00
FusionPBX
2055aff48a Add user enabled toggle. 2023-02-10 09:20:10 -07:00
markjcrane
d50bcb476a Replace root.php 2022-10-10 16:35:14 -06:00
konradSC
8767a28f69 Bug fix for api_key
If someone without the api_key permissions modified a user, it would wipe out the api_key value.
2021-01-07 08:43:58 -05:00
FusionPBX
704a1eb5e5 Update user_edit.php
Use the proper permission user_group_delete.
2020-11-03 13:49:43 -07:00
Nate
06f79d79e7 Users: Add setting to require username format be an email address or not. 2020-10-16 11:48:07 -06:00
FusionPBX
1a6f537d53 Add cast user_enabled as text 2020-07-05 20:07:42 -06:00
Nate
35924fbb2f Misc: Prep for future apps. 2020-04-18 14:09:51 -06:00
FusionPBX
340b32f092 Update user_edit.php 2020-04-17 16:59:38 -06:00
FusionPBX
789dadf579 Update user_edit.php 2020-04-17 16:58:57 -06:00
FusionPBX
ac85543881 Update user_edit.php 2020-04-16 17:11:48 -06:00
FusionPBX
b0abe3a531 Update user_edit.php 2020-04-16 17:05:07 -06:00
Nate
e86ee77d5c Users - Edit: Fix assigned and available Groups when cross-domain editing (via Show All feature). 2020-04-13 13:57:31 -06:00
FusionPBX
7000a4391f Update user_edit.php 2020-03-30 15:10:14 -06:00
Nate
043708d183 Users - Add/Edit: Persistent form values upon submission failure. 2020-03-27 18:09:04 -06:00
FusionPBX
a15c55d066 Update user_edit.php 2020-03-25 00:31:32 -06:00
FusionPBX
ef8521a2ee Update user_edit.php 2020-03-06 19:37:36 -07:00
Nate
f8c74e6586 Multiple: Add IDs to common/default action buttons. 2020-03-05 10:01:09 -07:00
Nate
141ca3b1e8 Users - Edit: Hide password fields before submit. 2020-03-03 19:16:33 -07:00
Len
c486353436 Update user_edit.php (#5156) 2020-02-26 17:16:05 -07:00
FusionPBX
3b8ae86771 Update user_edit.php 2020-02-18 22:19:21 -07:00