Try to create reset password but i’ve the same message error”: “Invalid or expired reset token.”
I have a project with a front-end in React.js and a back-end in Symfony 6.4 with the API Platform 3. I’m using a reset-password bundle. I’ve tested it with Insomnia, and I’m able to send an email with a link inside that contains a token. However, when I click on the link, I get the error “Invalid or expired reset token.”
I think I have a problem, but I don’t know why. In my database, the token is not complete. For example, the link in the email looks like this:
http://127.0.0.1:8000/reset-password/4ojbHunuRIBs81kHJRyTaR71NgWKgyayceG6ISPg
But in my database, I have a column selector with the beginning of the token: 4ojbHunuRIBs81kHJRyT, and a column with the hashed token.
Maybe it’s not that the problem. I see a other think when i watch the time in my dev.log or in phpmyadmin, i’ve 2 hour différence with the time of my computer but when i watch tape date on the terminal in vs code in my project i’ve the good date and time.
Can you help me fix this?
My entity: