-
-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is the registration confirmation link (verify-email-bundle) not working in Symfony 6 ? #1529
Comments
Did you do |
Yes, I did. Otherwise, I think, I would not have this file: Security/EmailVerifier.php |
Is the code working in PHP? I don't use vscode as my IDE, but this smells like a cache issue (for the ide). try |
Thank you for advice. I recieve confirmation email, but after folowwing the link, I see the mistake: Cleared cache successfully without any warnings. |
I've just tested with a new Symfony 6.4 and php 8.2 project, and I have no problem. I cannot reproduce this bug. My version of |
If someone have time to look at the code: |
I've just tested your project by simulating a dev environment, i.e. with a local SMTP server, and I've had no problems. My email is valid and set You may have a problem with your SMTP server |
Thank you. So i hope, after deploying it will work. I use Openserver. May be that is the reason. |
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.
The text was updated successfully, but these errors were encountered: