Hello,
I am implementing the reset-password using react and useraccounts-bootstrap packages, however i got this error when i click the reset password button in the ui:
Uncaught errorClass {message: "Match error: Expected string, got null", path: "", sanitizedError: errorClass, errorType: "Match.Error", stack: "Error↵ at exports.check (http://localhost:3000/…=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:863:24)"}
I changed the url with this:
Accounts.urls.resetPassword = (token) => {
return Meteor.absoluteUrl(`accounts/reset-password/${token}`);
};
I have configured the FlowRouter with these two routes:
// Render the form to request the email
FlowRouter.route('/accounts/password-recovery', {
name: 'accounts.password-recovery',
action(params) {
mount(SignupPage, {
content: 'passwordRecovery',
});
},
});
// Render the form to set the new password, accessed from the link sent by email
FlowRouter.route('/accounts/reset-password/:token', {
name: 'accounts.reset-password',
action(params) {
mount(SignupPage, {
content: 'resetPassword',
});
},
});
And “passwordRecovery” and “resetPassword” are resolved in the SignupPage using two components that lock up the at form using these:
<LoginContainer atFormState="forgotPwd" />
and
<LoginContainer atFormState="resetPwd" />
So, I think that the error could be happening because I am not passing the token into the reset form. is that correct? In that case, how do I pass the token into the at-form?.. I do not want to implement my own reset form…