Commit Graph

142 Commits

Author SHA1 Message Date
FusionPBX a4fddc7897
Update authentication.php 2023-05-12 20:30:17 -06:00
FusionPBX e9839e3b30
Refine the authentication ldap class 2023-05-12 19:34:05 -06:00
FusionPBX cd27922ce6
Refine the authentication email class 2023-05-12 19:33:14 -06:00
FusionPBX d9946b0207
Refine the authentication database class 2023-05-12 19:31:26 -06:00
FusionPBX ebf552e448
Refinements for the authentication class 2023-05-12 19:30:29 -06:00
FusionPBX d10e8bfdd4
Update authentication.php 2023-05-12 17:03:02 -06:00
FusionPBX 48fb933266
Remove static and use this. 2023-05-11 19:58:09 -06:00
FusionPBX 40d9121c8f
Convenient debug info for testing 2023-05-11 19:55:37 -06:00
FusionPBX ffd9a2c4b5
[bug fix] get the domain from the username (#6691)
* [bug fix] get the domain from the username

When the URL domain doesn't match the user's domain

Authentication can use domain from the username.

username:
user@domain
2023-05-11 18:58:22 -06:00
fusionate 5badf55c3c
Authentication [Class]: Updates for PHP 8.1 2023-05-11 13:40:17 +00:00
FusionPBX 5dae7314a1
Add project_path and login_destination_url 2023-05-10 23:11:36 -06:00
FusionPBX 663bcf929e
Add project_path and login_destination_url 2023-05-10 23:10:44 -06:00
FusionPBX cc77a060e1
Add project_path and login_destination_url 2023-05-10 23:09:43 -06:00
FusionPBX cb32d58f21
Add project_path and login_destination_url 2023-05-10 23:08:57 -06:00
FusionPBX a9fbb07a55
Use isset and empty 2023-05-10 21:58:00 -06:00
FusionPBX 9902e823b9
Use empty function for the request username and key 2023-05-10 21:53:39 -06:00
FusionPBX 2c9f6a157a
Enable database authentication by default
If no authentication settings are enabled it also defaults to database authentication.
2023-05-08 12:10:44 -06:00
FusionPBX d9cc3314d3
Add favicon (#6671)
* Add favicon

* Update totp_secret.htm

* Update totp.htm

* Update login.htm

* Update email.htm

* Update totp.php

* Update ldap.php

* Update email.php

* Update database.php
2023-05-06 18:31:48 -06:00
FusionPBX a866875383
Allow login with email authentication 2023-05-06 14:45:25 -06:00
FusionPBX 3aa5024cb2
Allow login with email authentication 2023-05-06 14:44:30 -06:00
FusionPBX eeef486384
Allow login with email authentication 2023-05-06 14:43:20 -06:00
FusionPBX 0757c79271
Allow login with user email. 2023-05-06 14:40:21 -06:00
FusionPBX 2bc91f2612
Auto create TOTP secret (#6670)
* Auto create TOTP secret

Auto create TOTP secret after successful database authentication when the TOTP secret has not been set.
2023-05-06 12:24:26 -06: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
frytimo 1c6c903709
Frytimo pr fix headers already sent (#6655)
* remove space causing headers already sent

* remove space causing headers already sent
2023-05-03 11:10:17 -06:00
markjcrane 1513bd3301 Add Chinese, Korean, and Japanese translations 2023-05-03 10:36:25 -06:00
Ben 4c01af52f0
Added Greek and Turkish language and translations (#6649) 2023-05-02 12:05:56 -06:00
frytimo 69bd42af05
remove unneeded destruct methods as GC has higher performance (#6631)
Co-authored-by: Tim Fry <tim@voipstratus.com>
2023-04-27 20:18:53 -06:00
Ben 2e50454e1c
added languages (#6618) 2023-04-26 15:08:58 -06:00
Ben 3cc543c1e5
added translations (#6621) 2023-04-26 15:08:33 -06:00
FusionPBX 81f42a4148
Use the google_authenticator php class 2023-04-23 01:17:22 -06:00
FusionPBX b6542299ba
Center the authentication_code 2023-04-23 01:13:55 -06:00
FusionPBX 6f489f0cf3
Remove unset removes the session settings 2023-04-18 11:28:24 -06:00
FusionPBX fd20067433
Remove unused login_destination_url 2023-04-18 09:41:25 -06:00
FusionPBX e336cb6999
Remove destination url 2023-04-18 09:40:33 -06:00
FusionPBX a9dc2ec479
Add login form to ldap 2023-04-18 09:36:09 -06:00
FusionPBX 33de786791
Add the logo soure, width and height 2023-04-18 09:23:04 -06:00
FusionPBX 1cebbb7c45
If set use the SESSION username 2023-04-17 22:15:02 -06:00
FusionPBX edb65edeec
Update app_config.php 2023-04-17 16:30:35 -06:00
FusionPBX 8498d3edb6
Add default settings authentication methods 2023-04-17 16:04:13 -06:00
FusionPBX ca0f5d5363
Use and set the SESSION username 2023-04-17 11:30:27 -06:00
FusionPBX 6bdab612b5
Use the session username when it is set 2023-04-17 11:22:27 -06:00
markjcrane 00801b5b04 Add mutli-factor authentication. 2023-04-16 01:10:39 -06:00
markjcrane d50bcb476a Replace root.php 2022-10-10 16:35:14 -06:00
FusionPBX 7c7112783c
Automatically block multiple authentication failures 2022-04-25 22:52:20 -06:00
FusionPBX ddb03b7722
Change the path from /app/user_logs to /core/user_logs. 2021-02-13 15:46:12 -07:00
FusionPBX c0e0cd3101
Update database.php
Add domain_uuid to the SQL select statement.
2020-10-27 15:50:24 -06:00
FusionPBX 1b0d8ceb41
Update database.php
Get the domain name from the database.
2020-10-26 19:22:46 -06:00
racitup a1699f6fa6 Add en-gb fusionpbx language (#5192)
* Create en-gb language by copying en-us

* Add en-gb to app_configs

* Add en-gb to app_menus

* Language copy utility

* Fix missing quote mark

* Delete cp_lang.py

Co-authored-by: FusionPBX <markjcrane@gmail.com>
2020-03-20 14:47:13 -06:00
FusionPBX 8443350604 Update database.php 2020-03-06 01:09:12 -07:00
FusionPBX 56d0811478 Update authentication.php 2020-02-20 01:01:23 -07:00
FusionPBX 40ed806b3b Update database.php 2019-09-18 20:39:28 -06:00
FusionPBX e1d5b87843 Update database.php 2019-09-18 20:09:11 -06:00
Nate 836fb87136 Misc Classes: Database class integration. 2019-09-02 15:57:18 -06:00
FusionPBX 98fd1aad80 Update authentication.php 2019-08-15 01:56:42 -06:00
FusionPBX bce5d6b043 Update ldap.php 2019-08-15 01:55:23 -06:00
FusionPBX 7d80afbdb0 Update database.php 2019-08-15 01:54:50 -06:00
FusionPBX 22f49f8ed2 Update authentication.php 2019-08-12 23:16:57 -06:00
FusionPBX 242660d470 Update authentication.php 2019-08-12 23:16:12 -06:00
FusionPBX 6d8fa9acb4 Update database.php 2019-07-29 10:33:55 -06:00
FusionPBX 89ce56e3ac Update ldap.php 2019-07-29 10:33:27 -06:00
Baji Zsolt f4618b7bfa Ldap connection to non standard port
port not used in ldap_connect
2019-05-29 17:24:48 +02:00
FusionPBX 71a4afeae5 Update database.php 2019-05-14 11:08:01 -06:00
Nate f4cdf58e65 Update database.php
Fixed so $_SESSION['user']['contact_uuid'] would be populated as intended.
2019-02-19 13:12:41 -07:00
FusionPBX 3d076b169f Update ldap.php 2019-02-09 08:06:07 -07:00
Mafoo d931d61042 Enhance - app_config.php cleanup for core (#2631)
make spacing and layout consistent
add all missing language tags
fill missing en-us descriptions
Repaired a couple of character encodings in fr-fr
convert to $x$y$z usage for array filling
add a default version number
this is a by hand update
2017-06-03 09:01:10 -06:00
The-Operator 32c1522cbb Add/Update German and Austrian translations (#2542)
Updated remaining app_languages.php files and all app_config.php and app_menu.php files where necessary.
2017-04-26 23:41:55 -06:00
Vladimir 30055465b7 Adding ru-ru locales (#2530)
* Translation of the menu (sent by Victor Kraft)

* ACL translate

* Backup translated

* App Fax translated (sent by Victor Kraft)

* App Adminer trnslated

* Resources translated (sent by Victor Kraft)

* App SIP Profiles translated

* ru-ru

* Call Block added

* ru-ru

* Update app_menu.php

* voicemails/app_languages.php locales ru-ru

voicemails/app_languages.php locales ru-ru

* app/vars/app_languages.php locales ru-ru

app/vars/app_languages.php locales ru-ru

* core: apps, authentication, databases, default_settings translate

* app/traffic_graph/app_languages.php adding locales ru-ru

app/traffic_graph/app_languages.php adding locales ru-ru

* app/time_conditions/app_languages.php adding locales ru-ru

app/time_conditions/app_languages.php adding locales ru-ru

* /app/system/app_languages.php adding locales ru-ru

/app/system/app_languages.php adding locales ru-ru

* /app/sip_status/app_languages.php adding locales ru-ru

* /app/settings/app_languages.php adding locales ru-ru

* /app/services/app_languages.php adding locales ru-ru

* /app/ring_groups/app_languages.php adding locales ru-ru

* /app/registrations/app_languages.php adding locales ru-ru

* /app/recordings/app_languages.php adding locales ru-ru

* /app/provision/app_menu.php adding locales ru-ru

* /app/pin_numbers/app_languages.php adding locales ru-ru

* Update app_languages.php

* /app/phrases/app_languages.php adding locales ru-ru

* /app/operator_panel/app_languages.php adding locales ru-ru

* core/groups translated

* /app/music_on_hold/app_languages.php adding locales ru-ru

* core/install translated

* core/menu translated

* /app/modules/app_languages.php adding locales ru-ru

* /app/meetings/app_menu.php adding locales ru-ru

* /app/log_viewer/app_languages.php adding locales ru-ru

* /app/ivr_menus/app_languages.php adding locales ru-ru

* /app/gateways/app_languages.php  adding locales ru-ru

* /app/fifo_list/app_languages.php adding locales ru-ru

* core/notifications translated

* /app/fifo/app_languages.php adding locales ru-ru

* core/upgrade translated

* Update app_config.php

* core/user_settings translated

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* core/users translated

* call_block translate fix

* Call Broadcast added

* call_block выклюено fix

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* themes translated

* /app/extensions/app_languages.php for locale ru-ru

* /app/exec/app_languages.php add locale ru-ru

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_menu.php

* add locales ru-ru /core/install/app_menu.php

* /app/emails/app_languages.php add locales ru-ru

* /app/edit/app_languages.php add locales ru-ru

* /app/dialplan_outbound/app_languages.php add lacales ru-ru

* app/devices translated

* /app/dialplan_inbound/app_languages.php add locales ru-ru

* call_center_active + call_centers

* /app/dialplan/app_languages.php add locales ru-ru

* /app/destinations/app_languages.php add locales ru-ru

* /app/database_transactions/app_languages.php add locales ru-ru

* /app/contacts/app_languages.php addlocales ru-ru

* Update app_languages.php

* Update app_languages.php

* /app/contacts/app_languages.php add locales ru-ru

* /app/conferences/app_languages.php add locales ru-ru

* /app/conference_profiles/app_languages.php add locales ru-ru

* /app/destinations/app_languages.php add locales ru-ru

* /app/destinations/app_languages.php add locales ru-ru

* /app/conferences/app_languages.php add locales ru-ru

* app/calls_active translated

* app/click_to_call translated

* app/calls_active label-opt fix transtation

* translated

* translated

* translate

* /app/voicemails/app_config.php addlocales ru-ru

* /app/voicemail_greetings/app_config.php add locales ru-ru

* /app/vars/app_config.php add locales ru-ru

* /app/traffic_graph/app_config.php add locales ru-ru

* /app/tones/app_config.php add locales ru-ru

* /app/time_conditions/app_config.php add locales ru-ru

* /app/tftp/app_config.php add locales ru-ru

* /app/system/app_config.php add locales ru-ru

* /app/sip_status/app_config.php addlocales ru-ru

* app/devices translated ru-ru

* app/devices translated ru-ru

* /core/menu/app_languages.php add locales ru-ru

* /app/contacts/app_languages.php add locales ru-ru

* /app/conferences/app_languages.php add locales ru-ru

* /app/voicemails/app_languages.php add locales ru-ru

* /app/conference_centers/app_languages.php add locales ru-ru

* /app/ring_groups/app_languages.php add locales ru-ru

* /app/ivr_menus/app_languages.php add locales ru-ru

* /app/xml_cdr/app_languages.php add locales ru-ru

* /resources/app_languages.php add locales ru-ru

* /app/conference_centers/app_languages.php add locales ru-ru

* call_flows

* /app/call_broadcast/app_languages.php add locales ru-ru

* /app/call_block/app_languages.php add locales ru-ru

* /app/call_block/app_languages.php add locales ru-ru

* /app/call_block/app_languages.php add locales ru-ru

* By now

* calls

* /app/call_flows/app_languages.php add locales ru-ru

* /app/system/app_languages.php add locales ru-ru

* /app/exec/app_languages.php add locales ru-ru

* /app/vars/app_menu.php add locales ru-ru

* /app/backup/app_languages.php add locales ru-ru

* /app/ring_groups/app_languages.php add locales ru-ru

* /app/calls/app_languages.php add locales ru-ru

* /app/call_centers/app_languages.php add locales ru-ru

* /app/call_broadcast/app_languages.php add locales ru-ru

* app/fax fix translate label-fax_send_channels

* /app/extensions/app_languages.php add locales ru-ru

* /app/xml_cdr/app_languages.php add locales ru-ru

* /app/ring_groups/app_languages.php add locales ru-ru

* /app/contacts/app_languages.php add locales ru-ru

* Fix default language select

* /app/contacts/app_languages.php add locales ru-ru

* Fix translations in app edit, extensions, fifo, gateways, music_on_hold, services, time_conditions, xml_cdr

* Replaced "звонки" to "вызовы" and fix sorting in menu for "Конференции"

* More replace "звонк"

* Fix translate

* app/xml_cdr replace translate for label-start_range, label-end_range

* app/xml_cdr replace translate label-destination, description_search and description-4

* Corrections

* Repalce "Порядковый номер" to "Приоритет"

* app/operator_panel replace translation label-call_group
2017-04-24 16:37:00 -06:00
FusionPBX 28f960a9f4 Update ldap.php 2017-04-20 10:28:53 -06:00
FusionPBX 381b420ac1 Update ldap.php 2017-04-03 12:04:16 -06:00
FusionPBX 012a601527 Update authentication.php 2017-03-08 16:04:38 -07:00
FusionPBX 5c5446b953 Update ldap.php
If the LDAP password is not provided then set authorized to false.
2016-11-02 00:16:30 -06:00
FusionPBX c212bba3b8 Update ldap.php 2016-10-31 11:01:52 -06:00
FusionPBX 5b3bc736e3 Update database.php 2016-10-03 21:37:27 -06:00
FusionPBX 7c99289243 Update authentication.php
Update the session username if authorized is true.
2016-10-03 21:35:34 -06:00
FusionPBX db9b088d86 Update authentication.php 2016-09-11 12:51:54 -06:00
FusionPBX 999eee3ebd Update database.php 2016-09-11 12:45:56 -06:00
FusionPBX 6ec74bc432 Update authentication.php
Make the database the default authentication plugin if the default setting -> authentication is not set.
2016-09-11 09:51:40 -06:00
FusionPBX d27824cbb7 Update ldap.php 2016-09-11 09:09:54 -06:00
FusionPBX c1db75ab45 Fix a spelling mistake in ldap.php. 2016-09-11 09:08:33 -06:00
FusionPBX 1082578788 Update ldap.php 2016-09-10 22:28:35 -06:00
FusionPBX 008597d159 Update database.php
Add contact_uuid to the database plugin.
2016-09-10 22:22:37 -06:00
FusionPBX c91933ee5b Create authentication.php 2016-09-10 22:21:08 -06:00
FusionPBX afdce9b55c Delete authentication.php
Wrong content added to this file that has no history so delete the file.
2016-09-10 22:20:10 -06:00
FusionPBX 81ba72734e Create root.php 2016-09-10 18:08:03 -06:00
FusionPBX 8eee98978e Create app_config.php 2016-09-10 18:07:18 -06:00
FusionPBX b369986716 Delete app_config.php
Put it in the wrong location.
2016-09-10 18:06:51 -06:00
FusionPBX 479c573591 Create app_config.php 2016-09-10 18:06:13 -06:00
FusionPBX c3cd81f0f9 Create ldap.php
Add a the authentication ldap plugin.
2016-09-10 18:02:37 -06:00
FusionPBX fe2f5477c1 Update database.php
Update the database plugin description.
2016-09-10 17:59:59 -06:00
FusionPBX 2a24f427de Create database.php
Add the default plugin.
2016-09-10 17:58:06 -06:00
FusionPBX 8bc4637338 Create authentication.php
First commit in a series of commits adding a new authentication class.
2016-09-10 17:54:32 -06:00