Giter VIP home page Giter VIP logo

Comments (6)

vincentchalamon avatar vincentchalamon commented on September 27, 2024

Hi @Cruiser13,

Thanks for opening this ticket. Could you open a PR to fix it please?

from cooptilleulsforgotpasswordbundle.

vincentchalamon avatar vincentchalamon commented on September 27, 2024

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.

Cruiser13 avatar Cruiser13 commented on September 27, 2024

@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.

vincentchalamon avatar vincentchalamon commented on September 27, 2024

Can you try replacing 'token' by 'tokenValue' in the OpenApiFactory to check if it solves your issue please?

from cooptilleulsforgotpasswordbundle.

Cruiser13 avatar Cruiser13 commented on September 27, 2024

@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.

vincentchalamon avatar vincentchalamon commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.