* Replace custom Twig bb_date/bb_datetime filters
Replace bb_date and bb_datetime Twig filters with format_date / format_datetime to better support i18n and customisability.
* Update templates to use format_date/format_datetime
Update all templates to use format_date/format_datetime (where appropriate and where not already used).
* Update locale configuration options
Update configuration options to include new locale settings, and ensure new options are used throughout.
* Add reset button to admin theme date picker
Add a reset button to the admin_default theme date picker to allow dates to be cleared, and fix an issue with Order module not allow blank dates. Resolves#938.
* Replace guzzlehttp/guzzle with symfony/http-client
Replace guzzlehttp/guzzle with symfony/http-client to standardise around one globally available HTTP client.
* Replace Box\Curl library and native cURL with symfony/http-client
Replace the Box\Curl library and native cURL with symfony/http-client to standardise around one well supported HTTP client, reduce unnecessary code, and improve compatibility.
* Remove obsolete functionality from Spamchecker module
Remove obsolete functions from Spamchecker module which depended upon cURL.
* add/replace modules icon and update manifest entry
* update modules manifest homepage_url
* include svg to set color via css
* +Attribution
---------
Co-authored-by: Yağızhan <yagizhan49@protonmail.com>
Verify current password before allowing staff or clients to change password (#541).
API Endpoints Changed
/api/admin/profile/change_password
Required fields:
current_password - Current admin user password.
new_password - New admin user password.
confirm_password - New admin user password confirmation.
/api/client/profile/change_password
Required fields:
current_password - Current client user password.
new_password - New client user password.
confirm_password - New client user password confirmation.
Affected Theme Files
mod_client_profile.html.twig
mod_staff_profile.html.twig
* add flag-icons
* add flag icon svgs from flag-icon package
* exclude flags from svg-sprite and fix url-loader
* replace flag icons from twig
* remove old flags
* ignore styelint to skip codeFactor error as the position is intentional
* Add PHPStan extension for deprecation function usage
* Removed some deprecated functions
* And a few more
* Also remove the deprecated API calls
* Fix references to deprecated API calls
* Oh, and this too
And allow it to be updated from within the client's profile.
This doesn't appear to be used anywhere in our default modules, but it's at least nice to give more inclusive options and allow it to be update by the client, for if it is ever used by a module.
* Implement a basic CSRF token system
* Update forms for all modules
* Added to the theme forms
* Create a config option for CSRF prevention
* Slightly rework the filter
* Let's actually use a global var
* Added the token to API hrefs
* Fixup
* Remove old reference
* Added the token to the installer twig globals
* The token isn't actually needed in the installer
* Fix client searching
* Whoops - those need quotes