Comments (6)
Hi @Cruiser13,
Thanks for opening this ticket. Could you open a PR to fix it please?
from cooptilleulsforgotpasswordbundle.
After investigation, it's totally normal to have a tokenValue
as a request attribute, because the token
request attribute is built from the RequestEventListener. This naming prevents erasing the original attribute.
The issue was on the OpenApiFactory parameter declaration, it should be tokenValue
instead of token
.
But I don't understand how you got a 404 while calling this route. Can you provide more context please @Cruiser13?
from cooptilleulsforgotpasswordbundle.
@vincentchalamon the open api docs (and the client generator of api platform) will not replace tokenValue in the request url as token is requested and not tokenValue. This leads to a request of /forgot_password/{tokenValue}?token=sometoken which will trigger a 404 since the route /forgot_password/{tokenValue} does not exist. I hope that has been a better explanation?
from cooptilleulsforgotpasswordbundle.
Can you try replacing 'token'
by 'tokenValue'
in the OpenApiFactory to check if it solves your issue please?
from cooptilleulsforgotpasswordbundle.
@vincentchalamon that would work the same way. That's the reason I asked wether I should be renaming all instances of token to tokenValue or the other way around in the first place :-)
from cooptilleulsforgotpasswordbundle.
OK I misunderstood the original issue, my bad!
The parameter name must be tokenValue
. The token
parameter is just for internal usage as a PasswordToken
object retrieved from the token value.
from cooptilleulsforgotpasswordbundle.
Related Issues (20)
- Follow Symfony Bundles best practices
- Release 1.4.5 has BC breaks HOT 3
- Dispatches an event when the user is not found
- overriding post forgot password doesn't work HOT 1
- Not work with PHP 8.2 HOT 2
- Method setUser() is not compatible with method HOT 1
- Can the endpoint documentation be overwritten? HOT 3
- [Documentation] Wrong call from Kernel Request Event HOT 1
- How can we perform password validation? HOT 2
- Getting a 204 without a response or any other logs HOT 3
- Minutes of expiry date fixed to numeric representation of the current month HOT 1
- trailing slash in route
- Feature Request: Customizable Token Generation HOT 1
- How to Disable forgot-password Routes in ReDoc Documentation Only? HOT 5
- Cannot autowire service "App\EventSubscriber\ForgotPasswordEventSubscriber": argument "$userManager" HOT 2
- Encode password HOT 1
- Symfony 6 compatibility HOT 2
- Hardcoded paths HOT 2
- API Platform 3.0 compatibility
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cooptilleulsforgotpasswordbundle.