Skip to content

[BUG] [Make:registration-form] Form errors are not handled #1453

@vlrjuan

Description

@vlrjuan

How to reproduce

Use attribute "no validate" in the registration form.

{{ form_start(registrationForm, {
    'attr': {
        'novalidate': 'novalidate'
    }
}) }}

{# ... #}

{{ form_end(registrationForm) }}

Nothing appears when clicking "S'inscrire" (no violations or form errors in the debug bar either):

Capture d’écran 2024-02-16 à 17 00 36

Expected behavior :

Capture d’écran 2024-02-16 à 17 03 08

How to fix

Replace :

return $this->render('registration/register.html.twig', [
    'registrationForm' => $form->createView(),
]);

with :

return $this->render('registration/register.html.twig', [
    'registrationForm' => $form,
]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions