Commit graph

80 commits

Author SHA1 Message Date
Timothée Jaussoin
88e2e049c4 Fix cases where alias and username can both be phone numbers but different
Update the views and add a test for FlexiAPI
Update the dependencies
2022-03-07 14:21:41 +01:00
Timothée Jaussoin
9e577de92a Fix #11 Remove table creation and removal + related code as it is now handled by FlexiAPI 2021-06-09 16:10:22 +02:00
Peio Rigaux
2ed044aab1 Fixed issue in get_config_value. Each parameter needs to be enclosed in quotes, since we want to check if the parameter is defined 2021-06-02 14:11:52 +00:00
Timothée Jaussoin
903da8652f XMLRPC was enforcing UTF8 for all the requests, enforces utf8mb4 for each queries like it is done in FlexiAPI (see https://github.com/laravel/framework/blob/v5.4.14/src/Illuminate/Database/Connectors/MySqlConnector.php#L55) 2021-06-01 15:13:00 +02:00
Sylvain Berfini
13d5a2410a Fixed an issue in previous commit 2021-04-16 15:53:12 +02:00
Sylvain Berfini
6d2cf23a80 Attempt to fix activation issue 2021-04-16 11:48:56 +02:00
Timothée Jaussoin
5ddb669af1 Add accounts management endpoints
Add account email reset endpoint
Update the dependencies
Complete tests
2020-12-07 15:25:34 +01:00
Peio Rigaux
220d596a7f Fixed configuration by really using reference of parameter in hook instead of copy, fixed provisioning for subdomains, added logs in case of digest auth fail 2020-12-03 11:28:01 +01:00
Peio Rigaux
5c7c0e1c01 Now secure provisioning new config value check with 'get_config_value' to prevent error if this value is missing in conf file 2020-11-20 18:37:16 +01:00
Sylvain Berfini
dc222ecd9e Added hooks to provisioning 2020-11-18 15:52:41 +01:00
Peio Rigaux
cfd3e6abfc Fixed remote provisioning values by ensuring that they override the existing ones when the according parameter is set 2020-11-09 17:22:41 +01:00
Sylvain Berfini
1af265f9d4 Fixed digest auth algorithm issue (no algo was sent correctly during 401).
Fixed double algorithm issue when account only has one algorithm (missing hyphen), added logs, fixed indent.
2020-10-30 12:09:09 +01:00
Peio Rigaux
1922ff8eac Fixed bug in XMLRPC authenticator ('SHA256' typo instead of 'SHA-256' causing 401 because the authenticator can't understand the parameter), added Changelog 2020-10-16 15:55:33 +02:00
Timothée Jaussoin
f77846b676 Update from Laravel 6 to Laravel 8
Fix the related tests
Add the Belledonne Communications copyright
2020-09-16 12:44:26 +02:00
Sylvain Berfini
73308bc9d6 Fixed digest auth for provisioning with another account 2020-09-14 10:47:38 +02:00
Sylvain Berfini
bffcde2193 Added digest auth to provisioning.php 2020-09-14 09:33:41 +02:00
Sylvain Berfini
172dd08423 Added one time password feature to provisioning.php 2020-09-14 09:33:41 +02:00
Peio Rigaux
b102db7fe4 Use get_config_value to ensure that geoloc accounts are disabled if there is no config value 2020-08-25 11:58:11 +02:00
Sylvain Berfini
b856d7b276 Added activation page to allow activating email accounts directly from flexisip-account-manager + added domain 2020-07-30 15:12:58 +02:00
Sylvain Berfini
39b5e6fc16 Allow path to config to be defined in httpd conf 2020-07-30 12:17:21 +02:00
Sylvain Berfini
3dd5471ea9 Added create_push_accounts 2020-07-20 10:46:46 +02:00
Peio Rigaux
e0390ce1d2 Fix/missing include get config value 2020-05-13 17:04:34 +02:00
Jehan Monnier
a0b6b2db8b add default value to config params 2020-02-28 13:18:01 +01:00
Peio Rigaux
804ba97924 Modified database.php to fix syntax error in condition 2020-01-23 14:11:30 +01:00
Peio Rigaux
d6e2ef7f9e Added linphone rootca as mysql connection param and added option to package's selinux rule to survive reboot 2020-01-15 17:44:54 +01:00
Timothée Jaussoin
3fb07ca34b Validate the existence of the required parameters when setting passwords 2020-01-08 15:21:16 +01:00
Timothée Jaussoin
065f0d3d8d Reindent and reformat the code to follow PHP-PSR2 2020-01-08 11:21:41 +01:00
Sylvain Berfini
6abd99e397 Fixed account activated flag upon recovery & fixed is_account_used method to check aliases 2019-11-28 16:50:05 +01:00
Sylvain Berfini
16b82b88bc Fixed issue with is_account_activated not answering for aliases 2019-11-26 15:03:12 +01:00
Sylvain Berfini
c40bb2bf6c Fixed return value not defined + version bumped 2019-11-08 10:22:22 +01:00
Sylvain Berfini
cf84578c43 Added option to prevent confirmation key one time use 2019-11-07 14:06:51 +01:00
Sylvain Berfini
2d117daaf1 Fixed recovert account from confirmation key 2019-11-07 13:41:08 +01:00
Sylvain Berfini
3c99551f40 Removed SHA256 auto password creation 2019-11-07 10:20:40 +01:00
Sylvain Berfini
6342f98656 Added upgrade password from MD5 to SHA256 method 2019-11-07 10:04:04 +01:00
Peio Rigaux
40a723d7a1 Fills new fields in db (country_code and country_name) on userinfo creation with a call to api.ipapi.com 2019-09-19 13:55:42 +02:00
Sylvain Berfini
acf739564a Fixed issue with update_passwords 2019-09-05 15:06:53 +02:00
Sylvain Berfini
4b91231b7a Added algo in activation link URL 2019-09-02 11:57:46 +02:00
Sylvain Berfini
eae267e264 Fixed double alias creation for phone accounts 2019-08-28 15:39:50 +02:00
Sylvain Berfini
c022559f10 Moved liblinphone related methods to specific file + fixed compatibility issue 2019-08-23 13:33:50 +02:00
Sylvain Berfini
04ad87663e Fixed remote provisioning 2019-08-23 10:40:59 +02:00
Sylvain Berfini
698dc3e4fd Fixed small issue 2019-08-23 10:14:13 +02:00
Sylvain Berfini
128c3230b9 Added sample code for QR code generation in remote provisioning 2019-08-22 16:05:46 +02:00
Sylvain Berfini
cb7e03b68e Removed compatibility methods + fixed digest auth white list methods 2019-08-22 15:21:09 +02:00
Sylvain Berfini
019f60cfe7 Updated & renamed update password(s) methods 2019-08-22 15:10:58 +02:00
Sylvain Berfini
e750ee64e4 Updated new create email account method to use directly the hash in args 2019-08-22 15:05:49 +02:00
Sylvain Berfini
060cab5506 Started changes for SHA-256 with MD5 compatibility 2019-08-22 14:51:46 +02:00
Sylvain Berfini
0c5d7a4980 Added username parameter to URI sent by email to validate account 2019-08-22 09:53:38 +02:00
Sylvain Berfini
49d2d78636 Improved factorization 2019-08-21 17:47:38 +02:00
Sylvain Berfini
8a7e6ccc81 Factorized code for confirmation key matching 2019-08-21 17:40:42 +02:00
Sylvain Berfini
0f24b04ba9 Added default algo setting 2019-08-21 17:20:03 +02:00