* 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.
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 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