User gets an Tokenised URL to his EMAIL reset password. URL is sent from Server side. Now when User hits URL, he is navigated to Reset password screes at CLIENT side.
When user enter password , and click Reset button. I am Calling "Reset password" method present at server side using meter.call(). I want to pass Token and new password to that function as input. how can i get that token which was generated at Server side to Client side.
Present i am getting this error : Token Undefined
Since you're dealing with a tokenised URL, you could figure out some way to parse the URL to retrieve the token. Getting the current URL is just:
document.URL
This could be even easier if you used Iron Router, as you could use this.params
to find the token you stored inside the URL.