-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
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
Reset password error - Uncaught Error: Match error: Expected string, got object #411
Comments
A bit more of context, please? |
I land on the change password route, I fill in new password (twice) and click the button that's when I get the error |
Lets try to debug this block of code in your browser (put a bearkpoint on the first line...). |
Accounts.resetPassword requires two strings |
You can see the issue here - https://xstaging.goplatfarm.com/#!forgot-password |
I'm having no luck debugging this, you can see the error here - https://xstaging.goplatfarm.com/#!reset-password/lVAjYl5iqapjQipWFWMok85CPwWifUu7H8sziI9h3HS |
I've just tried with your link... AccountsTemplates.configureRoute('forgotPwd', {
redirect: '/',
}); |
That's not the issue, it sends the reset password email but once you get the email click on the link, go to the change password page you can't change the password you get that error in the console |
Sorry I got lost... |
the problem is if you head to https://useraccounts-bootstrap.meteor.com/reset-password/lVAjYl5iqapjQipWFWMok85CPwWifUu7H8sziI9h3HS open up browser's console and type if instead you head to https://xstaging.goplatfarm.com/#!reset-password/lVAjYl5iqapjQipWFWMok85CPwWifUu7H8sziI9h3HS and do the same, you'll get undefined... ...the curious thing is that |
I tried your settings with my changes within a local app, also adding |
Just tested your changes still not working you can test it https://xstaging.goplatfarm.com/ |
Just tested it locally again still getting the same console error Uncaught Error: Match error: Expected string, got object |
When I test it by AccountsTemplates.paramToken I'm getting null |
I'm thinking it might be better to use "Router.current().params.paramToken" as this seems to work on my end when I test. I think something is causing a conflict with the URL not sure what it is maybe a package I checked all the routes I don't have reset-password router set anywhere. Is there way for me to hardcode or set a workaround that would use "Router.current().params.paramToken" |
Lets try this:
I bet there's something with your IR configuration that causes the |
I did the following and run meteor add useraccounts:core and run meteor remove useraccounts:bootsstrap But now I get - If I leave useraccounts:bootstrap I'm not seeing the console logs |
I added the bootstrap package locally, and tested still getting the console log. It seems the error hits before the log. |
I'm running a test before the error hits, at at_pwd_forms.js before I'm seeing that console.log(AccountsTemplates); has no object or paramToken or anything with hash |
Been testing it some more it seems that the onRun in core.js ( Line 721 in 98aa2a8
is never being run, if I move / add AccountsTemplates.paramToken = this.params.paramToken; to the onBefore hook it's fine and works. Still not sure why it's happing. Will do a pull request |
Never mind can't create a pull request, it's not open. Here is a gist with the fix https://gist.github.com/almogdesign/15d770ee2873f2d525b2 |
Same issue as here - #410 (comment) onRun hook not firing |
@splendido hi have you had a chance to check the onRun hook issue? |
pushing out 1.11.1 right now, let me know if it works! tnx! |
Tested works perfect thanks for the great support |
I'm getting the following error message when testing out the reset password
Uncaught Error: Match error: Expected string, got objectn @ 1b6d362a6b5cf33ccf07ab04bb45f2a3d5320a98.js:21e.resetPassword @ 1b6d362a6b5cf33ccf07ab04bb45f2a3d5320a98.js:72E.atPwdFormEvents.submit #at-pwd-form @ 1b6d362a6b5cf33ccf07ab04bb45f2a3d5320a98.js:212(anonymous function) @ 1b6d362a6b5cf33ccf07ab04bb45f2a3d5320a98.js:64e._withTemplateInstanceFunc @ 1b6d362a6b5cf33ccf07ab04bb45f2a3d5320a98.js:64(anonymous function) @ 1b6d362a6b5cf33ccf07ab04bb45f2a3d5320a98.js:64(anonymous function) @ 1b6d362a6b5cf33ccf07ab04bb45f2a3d5320a98.js:63c._withCurrentView @ 1b6d362a6b5cf33ccf07ab04bb45f2a3d5320a98.js:63(anonymous function) @ 1b6d362a6b5cf33ccf07ab04bb45f2a3d5320a98.js:63(anonymous function) @ 1b6d362a6b5cf33ccf07ab04bb45f2a3d5320a98.js:63ie.event.dispatch @ 1b6d362a6b5cf33ccf07ab04bb45f2a3d5320a98.js:50g.handle
The text was updated successfully, but these errors were encountered: