Commit Graph

97 Commits

Author SHA1 Message Date
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
Nate 232e49182b Users - Edit: Sticky User Settings action bar. 2020-02-12 11:58:56 -07:00
Nate 5b7d327189 User & User Settings: List view and button updates. 2020-01-07 11:11:50 -07:00
FusionPBX 950ad367d2 Update user_edit.php 2019-11-23 22:15:30 -07:00
FusionPBX 3f0f2701d9 Update user_edit.php 2019-10-31 21:55:12 -06:00
agree 3493549652 Update user_edit.php (#4815) 2019-10-31 21:52:50 -06:00
chansizzle 4a253662ff Update user_edit.php (#4776) 2019-10-14 19:53:51 -07:00
Nate fa18fd8db6 Update user_edit.php 2019-09-23 08:37:03 -06:00
Nate 3c36f49626 Users: Token integration. 2019-09-19 08:14:14 -06:00
FusionPBX 6f4fd7bc28 Update user_edit.php 2019-09-11 02:34:25 -06:00
Nate 911a43219e Users: Prevent duplicate usernames. 2019-09-10 19:23:14 -06:00
Nate 04c2f7a132 Misc: Database class integration. 2019-08-28 17:53:34 -06:00
FusionPBX 27c420fc19 Update user_edit.php 2019-08-23 21:38:17 -06:00
chansizzle 17566e7863 Update user_edit.php (#4450) 2019-08-21 17:32:40 -06:00
Nate 17f2911056 Replace misc glyphicon usage. 2019-08-20 19:53:21 -06:00
FusionPBX 75e4ac531b Update user_edit.php 2019-08-16 13:46:40 -06:00
FusionPBX 3fcf6a487c Update user_edit.php 2019-08-16 13:21:37 -06:00
FusionPBX a7e02a6136 Update user_edit.php 2019-08-16 13:15:52 -06:00
FusionPBX c879e97595 Update user_edit.php 2019-08-04 01:34:50 -06:00