Skip to content

Why is the registration confirmation link (verify-email-bundle) not working in Symfony 6 ? #1529

Open
@Kstein-yandex-ru

Description

@Kstein-yandex-ru

Error when clicking on the link:
The link to verify your email is invalid. Please request a new link.

Link address:
.../public/verify/email?expires=1714556381&id=6&signature=B1aR%2BQkz19d2Dchre8DFypMdwuQsI6x0ftxUuZ a6CWA%3D&token=UkASyA68lh94wZ9ztJHNZCE%2B49EKgbN75rHPqzIwG%2Fk% 3D

I have not changed standard files.

But I noticed that in the file Security/EmailVerifier.php d in VS Code this line is underlined in red:
private VerifyEmailHelperInterface $verifyEmailHelper,

Error:
syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE)

And in the file Security/LoginFormAuthenticator.php it is underlined with the same error:
public function __construct(private UrlGeneratorInterface $urlGenerator)

PHP version 8.1

I also found on the Internet that you need to add |raw to the variable in the template, but I already have it.

Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions