Commit graph

79 commits

Author SHA1 Message Date
Timothée Jaussoin
c81fdc6b10 Resolve the accounts inside the controllers, the automatic Laravel object resolve doesn't fit with the authenticated scope declared in the Account booted() method 2022-01-06 14:42:29 +01:00
Timothée Jaussoin
0338872c26 Fix the scope handling admins_manage_multi_domains in the booted() method
Update the documentation
Update and complete the tests
Update the dependencies
2022-01-05 14:43:31 +01:00
Timothée Jaussoin
585cc2f02c Split APP_EVERYONE_IS_ADMIN in two and introduce APP_ADMINS_MANAGE_MULTI_DOMAINS to allow admins to manage accounts accross the domains
Update the admins panels to allow domains to be edited
Update the tests
Update the dependencies
Complete the documentation
2022-01-04 16:40:24 +01:00
Timothée Jaussoin
7224e2831f Handle aliases when doing an email reset
Fix #6
2021-12-14 16:52:36 +01:00
Timothée Jaussoin
398867fa39 Add a new endpoint to search an account by SIP address as an admin 2021-11-24 17:21:27 +01:00
Timothée Jaussoin
d091b0dbcf Activate the account if the confirmation_key matches during provisioning
Complete the documentation and test
Bump the package number
2021-11-17 11:25:38 +01:00
Timothée Jaussoin
913b4d64bc Add the Vcard4 provisioning URL in the provisioning XML
Fix the Vcard4 format to comply with liblinphone
2021-11-03 17:09:43 +01:00
Timothée Jaussoin
48323477cf Complete the authenticated account contacts tests and fix the related documentation
Cleanup the returned Vcard 4.0 formats
Implement the recently introducted REST endpoints in the admin panels
Add account actions logs to the new Controllers
2021-11-02 17:00:41 +01:00
Timothée Jaussoin
917ab3d123 Complete the authenticated account contacts tests and fix the related documentation
Cleanup the returned Vcard 4.0 formats
2021-10-26 15:12:53 +02:00
Timothée Jaussoin
75a98c0949 Add AccountAction model, CRUD and tests
Add AccountType model, CRUD and tests
Add AccountContact model, CRUD and tests
Allow users to retreive their contacts in JSON and VCARD4.0 format
Update the dependencies
Complete the documentation
Improve the messages displayed when removing accounts in RemoveUnconfirmedAccounts
Fix a bug in DeviceController
Fix README
2021-10-26 11:20:00 +02:00
Timothée Jaussoin
4f11deeaf9 Add some basic subscriptions statistics
Move the statistics to a specific Library
Show some subscriptions charts in the admin panel
Inject the browser user agent to the database if available
Split statistics in different view (day/week/month)
Install cron scripts
Update the dependencies
2021-10-05 14:27:23 +02:00
Timothée Jaussoin
e832eae21e Forbid uppercase during registration
Update the dependencies
Bump the package number
2021-10-05 10:03:53 +02:00
Timothée Jaussoin
6a62b0de65 Remove forgotten phone validation to prevent 500 when submitting the related form
Bump the package number
2021-09-29 10:37:23 +02:00
Timothée Jaussoin
572254befb Complete README to add selinux rule about sendmail
Complete README to add tombstone clearning command documentation
Add a few logs when handling accounts as an admin in the web panel and the API
Bump package number
2021-09-09 16:18:50 +02:00
Timothée Jaussoin
63a690d6b2 Save the removed accounts in a "tombstones" table to prevent them to be recreated
Add a Console commande to clear the old tombstones
Update the documentation
2021-09-07 15:52:21 +02:00
Timothée Jaussoin
683e8164fc Complete and fix the generated provisioning XML
Use require_once to load the hooks and prevent double inclusion
2021-09-02 14:57:59 +02:00
Timothée Jaussoin
3dfe01f45e Allow the account creation admin API endpoint to set a specific domain if EVERYONE_IS_ADMIN is set to true
Update the dependencies
Bump the package version
2021-08-19 11:39:53 +02:00
Timothée Jaussoin
b48c8f505d Add a permanent provisioning URL, authenticated
Complete the documentation
Add a few tests for the provisioning urls
Update the dependencies
Bump the package version
2021-08-04 16:49:14 +02:00
Timothée Jaussoin
98ddf1f065 Enforce a redirection on the login page if the account is logued in
Use the APP_URL variable to define the base url
Bump the package number
2021-07-29 16:58:18 +02:00
Timothée Jaussoin
09e44f67db Add a create and edit feature for accounts in the Admin panel 2021-07-29 08:48:11 +00:00
Timothée Jaussoin
54ada09169 Add a basic documentation for FlexiAPI account panel 2021-07-27 09:35:47 +00:00
Timothée Jaussoin
d259a61c4f Remove the old password request feature when changing the password
Update the dependencies
Bump the package version
2021-07-12 11:02:08 +02:00
Timothée Jaussoin
13a1eb4dc5 Add account deletetion feature in the Admin panel
Add the provisioning elements to the user admin page
Add missing file headers, cleanup code
Bump the dependencies
2021-07-06 15:35:21 +02:00
Timothée Jaussoin
2062d0618f Add a provisioning endpoint
Add QRCode link endpoint
Install endroid/qr-code to generate the QRCode
Add a ACCOUNT_PROVISIONING_RC_FILE to configure the provisioning RC file
Complete the documentation
Handle expired confirmation_key in the provisioning endpoints
Implement the provisioning hooks and complete the README
Complete the README regarding the db:import command
Bump the package number
2021-07-05 10:41:45 +02:00
Timothée Jaussoin
ba7d91210c Fix #12 Add logs to important API endpoints and Web panel events
Update the dependencies
2021-07-02 11:01:00 +02:00
Timothée Jaussoin
fe279e3244 Remove totally the SQLite support
- Run all the migrations in the MySQL database
- Add foreign keys + cascade support
- Remove the AccountDeleting event (now useless)
- Simplify the related code
- Keep (for now), the FlexiSIP structure to ensure compatibility
- Update the README
- Update the test suite
2021-06-03 11:31:54 +02:00
Timothée Jaussoin
48bc542097 Inject the account information as a Javascript variable
Check the registration and authentication status and inject this variable once the email is validated or the account authenticated
Bump the package number
Fix #8
2021-05-05 16:00:07 +02:00
Timothée Jaussoin
4fbdf5842b Remove the phone number validation and dependency
Fix #10
2021-05-05 11:32:36 +02:00
Timothée Jaussoin
8acd08607c - Fix an issue when the user set for the first time his email adress to his account (the old email was required)
- Fix an issue when a user want to do an email authentication on an account that is using the same email adress as another account
- Bump the package number
2021-05-04 11:27:21 +02:00
Timothée Jaussoin
d0cce36eeb Add a nice layout for the common errors, fix #5
Update the dependencies
Remove some old codes
Bump the package version
Move the throttle limit from 60 to 600
2021-05-03 12:07:57 +02:00
Timothée Jaussoin
a60fe69c6a Fix some authentication and redirection errors
Bump version to 63
2021-04-29 11:13:09 +02:00
Timothée Jaussoin
c8aa86d77a Allow aliases to be entered in the authentication
Fix the authentication password check to allow "alias-accounts"
2021-04-27 17:27:27 +02:00
Timothée Jaussoin
9cf86e1b6a Allow phone numbers to be set on the admin account creation API endpoint 2021-04-22 17:47:16 +02:00
Timothée Jaussoin
8451277676 Remove the WhiteSpace limitation in the api for usernames during account creation
Update the dependencies
2021-04-12 15:55:51 +02:00
Timothée Jaussoin
46af75fea3 Add account expirations table
Complete POST /accounts admin endpoints
Handle expiration in email and phone endpoints
Complete documentation
Add related tests
Bump package version
2021-03-03 17:25:52 +01:00
Timothée Jaussoin
cd32657d21 Add Push notification token and account creation endpoints
Complete documentation
Complete tests
Update the dependencies
Bump the package number
2021-02-24 15:15:40 +01:00
Timothée Jaussoin
e2aeab285a Allow admin accounts creation through the admin account creation API
Fix a small issue in the account panel authentication controller (realm->domain)
Update the dependencies
Bump the release version
2021-02-15 10:05:33 +01:00
Timothée Jaussoin
3fdedda515 Bring back the confirmation_key in Account but only in Admin endpoints (for security reason)
Authenticate on the resolvedRealm and not the configured domain
Bump package
2021-02-11 17:59:41 +01:00
Timothée Jaussoin
4fc6aaa824 Resolve properly the domain/realm when hashing the password
Add aliases support through two new endpoints, allowing user to set a phone number on his account
Hide the confirmation_key from the returned account JSON
Bump version number
2021-02-11 16:06:20 +01:00
Timothée Jaussoin
bc3d1d1f38 Also allow similar usernames from different domains
Bump package version
2021-02-09 15:27:30 +01:00
Timothée Jaussoin
68f325f2fd Set the same behavior between API and the main form, same username between different domains are allowed
Bump package number
2021-02-09 14:17:10 +01:00
Timothée Jaussoin
e98e0bf003 Allow the Terms and Conditions to be set as URLs
Cleanup the old TaC pages
Update the dependencies
2021-02-09 13:58:32 +01:00
Timothée Jaussoin
b6959cc5dd Add support of realms in the authentication process through a global configuration variable 2021-02-03 15:33:07 +01:00
Timothée Jaussoin
cda7864c52 Ensure that the confirmation code is also generated when activated is set to false during the account creation process
Bump the package number
2021-01-18 17:54:29 +01:00
Timothée Jaussoin
a82d66bc48 Fix a missing use
Bump the version
2021-01-14 15:40:44 +01:00
Timothée Jaussoin
539cf21269 Complete the documentation
Return a validation code on the admin account creation endpoint if the validation is set to false
Move some endpoints to be more consistant
Enforce validated accounts for authenticated endpoints
Bump the package version
2021-01-14 14:29:16 +01:00
Timothée Jaussoin
70463ae687 Complete the API with new endpoints
Update the documentation
Bump the build number to 41
2021-01-13 14:47:22 +01: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
Timothée Jaussoin
603f1a6686 Add the activated parameter in the API accounts creation command
Complete the README documentation to add the artisan commands
Add an API key authentication mechanism
Update the dependencies
2020-10-19 11:53:07 +02:00
Timothée Jaussoin
7c04fd3789 Move the validation code to 13 characters
Validate the account automatically if a password is already set
Bump RPM package version to 31
2020-10-12 14:18:16 +02:00