+ {% if form %}
+ {% form_theme form '@RoadizRozier/forms.html.twig' %}
+ {{ form_start(form) }}
+ {{ form_widget(form) }}
+
+ {{ form_end(form) }}
+ {% endif %}
+ {% if displayQrCodeTotp %}
+ {% trans %}scan_qr_code_with_totp_app{% endtrans %}
+
+ {% endif %}
+
+{%- endblock -%}
diff --git a/lib/RoadizUserBundle/README.md b/lib/RoadizUserBundle/README.md
index e05a5d44..00dfb5c2 100644
--- a/lib/RoadizUserBundle/README.md
+++ b/lib/RoadizUserBundle/README.md
@@ -82,9 +82,9 @@ framework:
security:
access_control:
# Append user routes configuration
- - { path: "^/api/users/signup", methods: [ POST ], roles: IS_AUTHENTICATED_ANONYMOUSLY }
- - { path: "^/api/users/password_request", methods: [ POST ], roles: IS_AUTHENTICATED_ANONYMOUSLY }
- - { path: "^/api/users/password_reset", methods: [ PUT ], roles: IS_AUTHENTICATED_ANONYMOUSLY }
+ - { path: "^/api/users/signup", methods: [ POST ], roles: PUBLIC_ACCESS }
+ - { path: "^/api/users/password_request", methods: [ POST ], roles: PUBLIC_ACCESS }
+ - { path: "^/api/users/password_reset", methods: [ PUT ], roles: PUBLIC_ACCESS }
- { path: "^/api/users", methods: [ GET, PUT, PATCH, POST ], roles: ROLE_USER }
```
- Edit your `./.env` file with:
diff --git a/phpstan.neon b/phpstan.neon
index 8391eb7b..a3cabb0a 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -15,6 +15,7 @@ parameters:
- lib/RoadizFontBundle/src
- lib/RoadizRozierBundle/src
- lib/RoadizUserBundle/src
+ - lib/RoadizTwoFactorBundle/src
- lib/Rozier/src
- src
bootstrapFiles: