We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the given example
return ( <AccountsReactComponent history={history} route={path} token={params.token} // for the reset-password route /> )
when path is '/reset-password/:token', it does not route accordindly as it is not one of the valid state this allows to get rid of /:token
route={path.indexOf('/reset-password') !== -1 ? '/reset-password' : path}
Maybe you can change AccountsReactComponent (not easy on first look) or just update the example ?
Also I noticed that it is not mentionned to add this code on server side
import { Meteor } from 'meteor/meteor'; import { Accounts } from 'meteor/accounts-base'; Accounts.urls.resetPassword = function (token) { return Meteor.absoluteUrl('reset-password/' + token); };
The text was updated successfully, but these errors were encountered:
If i'm not wrong, "path" should return the raw url specified in the Route component but i'll check into that once I can.
And thanks, i'll update the the documentation with Accounts.urls.resetPassword!
Sorry, something went wrong.
Yes this is indeed an issue.
No branches or pull requests
In the given example
when path is '/reset-password/:token', it does not route accordindly as it is not one of the valid state
this allows to get rid of /:token
Maybe you can change AccountsReactComponent (not easy on first look) or just update the example ?
Also I noticed that it is not mentionned to add this code on server side
The text was updated successfully, but these errors were encountered: