Dependencies:
- Mailer events (Symfony)
app/config/services.yml
parameters:
app.website_name: '%env(WEBSITE_NAME)%'
app.website_url: '%env(WEBSITE_URL)%'
The following code will create and update on user input a password strength meter relying on data provided by the zxcvbn estimator from Dropbox and the HaveIBeenPwned API (if reachable).
onKernelResponse()
methodconfig/response_header_setter/response_headers.yaml
See https://symfony.com/doc/current/frontend/encore/server-data.html for context.
Twig filter to merge arrays with array_merge_recursive()
instead of array_merge()
. Required to prevent Twig merge
filter from overwritting twig_to_js_global_data string keys if extra_data has identical keys (e.g. both have a translations
key).
Add this to your _base.html.twig, probably just before {% block javascripts %}