Commit Graph
22 Commits
Author SHA1 Message Date
FOSSBilling Bot 1970b320e1 Apply PHP Code Styling & Quality Changes (#1617) 2023-09-19 17:22:00 +03:00
Belle Aerni 949e62ba3c Improve the behavior of the test email button (#1604)
* Improve the behavior of the test email button

* Spelling & wording

* Minor fix to the vars
2023-09-15 09:24:03 -07:00
RonandBelle Aerni 756fab9308 #1342 Fix Email Queue (#1592)
* #1342 fix processing emails from queue

* #1342 fix code style

* #1342 temp fix email send test

* Remove the commented out code as it's not needed

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-09-14 08:27:34 -07:00
Christoph SchlaepferandBelle Aerni 7a38450458 Make system version & company info visibility through the guest API configurable (#1504)
* Add feature to hide public FOSSBilling version and Company information

* Cleaned up

* Added Test cases for Version & Company information

* Fixed Authorization Mock

* Fixed Tests so isAdminLoggedIn is false when testing Public Access

* Cleaned up

* Implemented Suggested code and fixed tests.

* Removed manual Version for API.js string and replaced with twig filter "script_tag"

* Added Twig filter for Version and replaced guest.system_version

* Added Message to Admin Settings

* Now let's do all of that, but better

- A filter is the wrong way to get the system version to the front end
- The wording in the admin panel for these settings didn't correctly describe what they did and they had poor grammar
- The version check should be returning a string, not an array & the code can be significantly cleaned up.
- Inverting the behavior of these toggles means that existing installations will continue to have the same behavior as before without us forcibly changing it. Otherwise, we need to introduce a DB patch to add the new values with them being on to match what was the old behavior.
- For new installations, we can pretty safely turn these options off to give a bit more privacy / security and allow them to be turned back on if wanted.
- New installations can keep the current behavior. We will highlight that this feature is added & if it's something the administrator wants, they can adjust the settings for themselves

* Cursed spelling *angry hand movements*

* That should have never been an array to being with

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-08-02 19:40:43 +02:00
fefbcd21b0 Apply PHP Code Styling & Quality Changes (#1498)
* Apply PHP Code Styling & Quality Changes

* Delete these

* Update .gitignore

* Fixes for PHPStan

* Ignore spelling in the gitnore

* Allow null for that type

Honestly doing so makes ZERO sense, but it matches the current behavior.

---------

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-07-30 08:57:44 -07:00
Yağızhanandfossbilling-bot fd872ac941 Implement PHP-CS-Fixer as an automated workflow (#1240)
* Implement PHP-CS-Fixer as an automated workflow

* Apply PHP-CS-Fixer changes

---------

Co-authored-by: fossbilling-bot <121974958+fossbilling-bot@users.noreply.github.com>
2023-07-30 06:49:11 -07:00
Yağızhan d909d77f7e -Unnecessary whitespace in the class headers (#1219) 2023-05-07 13:24:29 -07:00
Yağızhan 412e4a9fbd Standardized the class headers (#1212) 2023-05-06 13:06:17 +01:00
Adam Daley e54569d2cd Introduce namespaces and strict typing for FOSSBilling library classes (#1206) 2023-05-04 01:02:06 +01:00
Yağızhan 950e4dccef Type hinting the DI methods and variables (#1201) 2023-05-01 21:01:35 +03:00
Yağızhan 884e66aa4b Removed getSettingsRoutes & hasSettingsRoutes (#1196) 2023-05-01 13:27:39 +03:00
Belle Aerni a6e5ba88a0 Move to using symfony/mailer for emails (#1091)
* Move to using symfony/mailer for emails

* Is now working as intended

* Missed removals

* Fix front-end & allow usage of custom DSN

* Also remove the old package files

And fixed the fact that I put the admin_default cleanup under a patch that was for a previous release we made.
2023-04-09 02:11:08 -07:00
Belle Aerni 9faa981c58 Replace usage of array_get (#989)
* Replace usage of array_get

* Fixes

* And a few more

* Remove remaining references

* Update Service.php

* Few more fixes

* Fix.. I think?

* Fix Client / Invoice updates

* Fix stats

* Fix issues noticed during code review

* More fixes

* And some more fixes :)
2023-03-27 23:44:30 -07:00
Belle Aerni 86d4514b9a Fix email action code generation (#866) 2023-03-01 13:06:20 +02:00
Belle Aerni dcdf1ea83c Make module's settings labels translatable 2023-01-26 15:40:03 -08:00
Jaap Marcus 968d1de51a Demo mode and disabling mail caused issues in cronjobs / admin login 2023-01-21 16:18:16 +01:00
Wynton Franklin a68d3edc20 Merge remote-tracking branch 'upstream/main' into admin-password-reset 2023-01-15 17:30:12 -04:00
Wynton Franklin 6bd52065d8 add send email to one staff account. 2023-01-15 11:44:24 -04:00
Belle Aerni 774f0d5c95 Use Rector to modernize code for PHP 8.0 2023-01-12 00:40:54 -08:00
Jaap Marcus c96a45157f Feature | Disable email when in Demo mode (#570)
* Disable Email when Demo mode is enabled

* And for mass mail

* Fix tests
2022-12-11 02:57:09 -08:00
Belle Aerni edb163f442 BB_PATH --> PATH 2022-11-28 17:22:51 +03:00
Belle Aerni edd6f72634 Drop the "BB" prefix 2022-11-28 17:22:50 +03:00