Commit Graph
401 Commits
Author SHA1 Message Date
YağızhanandBelle Aerni dbcf9a3ad4 Rewritten bin/prepare & +FOSSBilling_Environment (#1622)
* Rewritten bin/prepare & +FOSSBilling_Environment

* -redundancy

* - unnecessary bits

* nothing much

* Fix inverted logic, use new function in missed location

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-09-22 18:19:02 -07:00
3ee7f29689 Reworked Password-Reset flow (#1627)
* Reworked Password-Reset flow
- No more Passwords sent via E-Mail
- Correct redirects.

* Fixed spelling & last redirect

* Small fixes and updated tests for pw-reset-flow

* Fixed tests for pw-reset-flow

* Fixed tests for the Password reset flow

* Fixed typos, resolved Feedback

* Renamed event before password reset

* Renamed event after password reset

* Tweak a few comments, send the reset email instantly

---------

Co-authored-by: Christoph Schläpfer <c.schlaepfer@datact.ch>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-09-22 18:15:18 -07:00
Belle Aerni cba659534c Improve session max age logic / behavior (#1614) 2023-09-22 16:46:58 -07:00
Christoph SchlaepferandChristoph Schläpfer 4dd38a0479 Removed random static key in email setVars & getVars (#1629)
* Removed random static key in email setVars & getVars

* Added config mock to Tests, fixed feedback

* Added config mock to Tests, fixed feedback

---------

Co-authored-by: Christoph Schläpfer <c.schlaepfer@datact.ch>
2023-09-22 15:43:36 -07:00
FOSSBilling Bot 4944d323b8 Apply PHP Code Styling & Quality Changes (#1625) 2023-09-21 16:30:23 +03:00
Belle Aerni 3d7132321a Prune the filesystem cache during cron (#1596)
* Prune the filesystem cache during cron

* Something something fix the tests

* Move it to the system module
2023-09-20 00:08:47 +02:00
FOSSBilling BotandFOSSBilling Bot af24d2f828 Update CKEditor and Related Dependencies (#1618)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-09-19 19:11:43 +03:00
FOSSBilling Bot 1970b320e1 Apply PHP Code Styling & Quality Changes (#1617) 2023-09-19 17:22:00 +03:00
Ron daab217a46 Copy Option for Order Button Code Examples (#1606)
* #1237 copy option for order button examples

* fix textarea rows
2023-09-16 08:33:33 -07: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
FOSSBilling BotandFOSSBilling Bot 146281a9c0 Update CKEditor and Related Dependencies (#1593)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-09-12 14:21:28 +02:00
Shamshid 682541706c Improve color-picker design (#1590)
* add coloris css from Tabler

* fix input-groups
2023-09-10 01:16:15 -07:00
Belle Aerni 6bc1ae0585 Implement warnings about major and minor updates (#1588)
* Implement warnings about major and minor patches

* Added PHPDocs for the new function
2023-09-09 08:52:43 -07:00
FOSSBilling BotandFOSSBilling Bot 72b74b4741 Update CKEditor and Related Dependencies (#1581)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-09-05 06:35:55 -07:00
FOSSBilling BotandFOSSBilling Bot 6008a1dd0d Update CKEditor and Related Dependencies (#1558)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-22 15:09:50 +02:00
ilham B c0427c4e72 Update Guest.php (#1551)
fix currency Price format
2023-08-19 11:11:20 -07:00
Jaap Marcus fd4204be6a Admin users are unable to create ticket due to missing "Client ID" (#1548) 2023-08-17 07:46:16 -07:00
Belle Aerni 5f770f321b Fix email verification behavior oddities (#1534) 2023-08-17 07:45:06 -07:00
FOSSBilling BotandFOSSBilling Bot a35aa05b9b Apply PHP Code Styling & Quality Changes (#1540)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-15 14:30:28 +02:00
FOSSBilling BotandFOSSBilling Bot d4a0a65c49 Update CKEditor and Related Dependencies (#1541)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-15 14:29:52 +02:00
Belle AerniandJaap Marcus d2a18581c4 Fix / change invoice incrementation logic (#1474)
* Fix invoice incrementation logic

Co-Authored-By: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>

* Oh I hate these tests

* Remove duplicated semicolon

---------

Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
2023-08-12 02:19:01 +01:00
FOSSBilling BotandFOSSBilling Bot b665e7017b Update CKEditor and Related Dependencies (#1524)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-08 05:38:09 -07:00
Belle Aerni 997fad4699 Improve .htaccess rules & prevent access to PHP files (#1522)
* Prevent browser access to cron and other files

* Prevent access to PHP files + enhanced htaccess

* Remove browser related stuff from cron.php

* Added the .htaccess file to our cspell ignore list
2023-08-08 14:26:39 +02:00
Belle Aerni 6ecb90628f Prevent actions on hosting services with bad order status (#1521) 2023-08-08 00:39:15 -07:00
FOSSBilling BotandFOSSBilling Bot 409fe5a5f9 Apply PHP Code Styling & Quality Changes (#1520)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-07 14:20:52 -07:00
Christoph SchlaepferandAnuril df077d3c04 Added function to allow to Update all Orders with a new file by updating the Product. (#1488)
* This PR Fixes #1405 and adds the functionality to configure if the downloadable product should update all orders with the product, or not.

It's configurable per Product.

* Fixed duplicate ID in Installer

* Add words to ignorelist

* This PR Fixes #1405 and adds the functionality to configure if the downloadable product should update all orders with the product, or not.

It's configurable per Product.

* Fixed duplicate ID in Installer

* Add words to ignorelist

* Add words to ignorelist

* Cleaned up Code

* Improved readability

* More cleanup

* Cspell fix

* Fixed missing :

* Made update_prodcts default

* Removed field update from sql and updater

* Removed default option code from Product code

---------

Co-authored-by: Anuril <ta@TAPC01.localdomain>
2023-08-07 14:10:39 -07:00
FOSSBilling BotandFOSSBilling Bot 0db7ab60d1 Update CKEditor and Related Dependencies (#1517)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-04 15:10:46 +02:00
FOSSBilling BotandFOSSBilling Bot c7824ea1b2 Update CKEditor and Related Dependencies (#1512)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-03 14:42:30 +02:00
FOSSBilling BotandFOSSBilling Bot 0f33d750c0 Apply PHP Code Styling & Quality Changes (#1511)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-02 11:08:07 -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
FOSSBilling BotandFOSSBilling Bot 97cbb09d66 Update CKEditor and Related Dependencies (#1510)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-02 14:36:22 +02:00
FOSSBilling BotandFOSSBilling Bot 9e57ebd181 Update CKEditor and Related Dependencies (#1507)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-01 09:12:59 -07:00
FOSSBilling BotandFOSSBilling Bot c83b3aea88 Apply PHP Code Styling & Quality Changes (#1501)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-07-30 11:47:43 -07:00
Christoph SchlaepferandAnuril e466b0a425 Prevent deletion of Servers, Hosting Plans and TLDs that have active Products. (#1492)
* Started to rework deletion checks so no unintended database issues can arise.

We should really start working with referential integrity, otherwise this will become unmanageable soon.

That would also require things like Taxes be referred to by their IDs, not their names.

https://github.com/FOSSBilling/FOSSBilling/blob/ad94a9f3255801817f393cda36bc0a38796e1eb9/src/install/sql/structure.sql#L575

https://github.com/FOSSBilling/FOSSBilling/blob/ad94a9f3255801817f393cda36bc0a38796e1eb9/src/install/sql/structure.sql#L1365

* Fixed the tests for the _delete functions

* Started to rework deletion checks so no unintended database issues can arise.

We should really start working with referential integrity, otherwise this will become unmanageable soon.

That would also require things like Taxes be referred to by their IDs, not their names.

https://github.com/FOSSBilling/FOSSBilling/blob/ad94a9f3255801817f393cda36bc0a38796e1eb9/src/install/sql/structure.sql#L575

https://github.com/FOSSBilling/FOSSBilling/blob/ad94a9f3255801817f393cda36bc0a38796e1eb9/src/install/sql/structure.sql#L1365

* Fixed the tests for the _delete functions

* Fixed tests

* Fixed tests

* Fixed tests

* Fixed tests

* Fixed testhp_delete tests

* Add words to ignorelist

* Add words to ignorelist

* Fixed count placeholder & cleaned up code

---------

Co-authored-by: Anuril <ta@TAPC01.localdomain>
2023-07-30 20:38:53 +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
9e4e3023fa Fixed Password Reset handling (#1365)
* Fixed Passwort Reset handling so the message is the same whether the E-Mail address exists or not.

* Fixed spelling & Test

* Fixed Typo

* Improved Staff PW Reset handling and removed both Exceptions to return true

* Improved grammar & wording

---------

Co-authored-by: Christoph Schläpfer <c.schlaepfer@datact.ch>
Co-authored-by: Anuril <ta@TAPC01.localdomain>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-07-30 06:58:11 -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
Belle Aerni 5c2b8d4b89 Fix issue where nothing was being passed to min (#1477) 2023-07-30 06:34:29 -07:00
Christoph SchlaepferandAnuril 23c343c33b Invoices now get generated for all orders at order time. (#1494)
Co-authored-by: Anuril <ta@TAPC01.localdomain>
2023-07-30 15:20:51 +02:00
7a99f78ef1 Remove incorrect login info from onEventAdminLoginFailed (#1495)
* Small security fix that removes the cleartext password from log files and the "onEventAdminLoginFailed" event

* Do it better and less wrong

---------

Co-authored-by: Anuril <ta@TAPC01.localdomain>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-07-30 05:47:30 -07:00
Jelmer Visser ad94a9f325 1485: Fixed tax support checkbox (#1486) 2023-07-29 17:47:19 +02:00
YanickandBelle Aerni 74406627f1 Make invoice customizable (#1461)
* impl invoice customizing

* use invoice object instead of variables

* impl fossbilling native functions

* rename some variables

* update twig template

* impl support for custom file

* remove comment

* use di twig

* remove var

* use native format_datetime from twig

* remove dependency to old html code

* fix logoSource not being defined

Commited from my iPhone

* Minor fixes and misc changes

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-07-27 07:19:17 -07:00
FOSSBilling BotandFOSSBilling Bot fa53ed0da2 Update CKEditor and Related Dependencies (#1476)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-07-27 07:18:21 -07:00
Belle Aerni dfcabdd80b Remove the "remember me" checkbox (#1471)
The functionality for this isn't actually implemented and it doesn't work
2023-07-26 08:14:28 -07:00
Belle Aerni 20c23b051e Invalidate existing sessions during PW reset (#1435) 2023-07-20 13:23:44 +01:00
Belle Aerni 325155bccd Fix minor errors (#1443) 2023-07-20 13:12:54 +01:00
Belle Aerni 9975f0c5d6 Minor improvements to the themes list (#1447) 2023-07-18 13:05:00 +02:00
Belle Aerni c83f80cc2d Fix / improve flawed email confirmation system (#1451)
* Fix / improve flawed email confirmation system

* Don't check email confirmation during login

This will prevent them from being able to change it if they had a typo and is not needed now that it's checked on page-load

* Removed the unneeded test
2023-07-18 13:04:39 +02:00
FOSSBilling BotandFOSSBilling Bot f5baf5d337 Update CKEditor and Related Dependencies (#1444)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-07-14 16:43:58 +02:00